@@ -0,0 +1,2088 @@
+%0A/*%0A * Copyright 1999-2002 Carnegie Mellon University.  %0A * Portions Copyright 2002 Sun Microsystems, Inc.  %0A * Portions Copyright 2002 Mitsubishi Electronic Research Laboratories.%0A * All Rights Reserved.  Use is subject to license terms.%0A * %0A * See the file %22license.terms%22 for information on usage and%0A * redistribution of this file, and for a DISCLAIMER OF ALL %0A * WARRANTIES.%0A *%0A */%0A%0Apackage edu.cmu.sphinx.knowledge.dictionary;%0A%0Aimport java.io.Serializable;%0A%0A/**%0A *  Provides pronunciation information for a word.%0A *%0A */%0Apublic class Word implements Serializable %7B%0A%0A    /**%0A     * The Word representing the unknown word.%0A     */%0A    public static final Word UNKNOWN%0A        = new Word(%22%3Cunk%3E%22, new Pronunciation%5B0%5D);%0A%0A    private String spelling;               // the spelling of the word%0A    private Pronunciation%5B%5D pronunciations; // pronunciations of this word%0A%0A    /**%0A     * Creates a Word%0A     *%0A     * @param spelling the spelling of this word%0A     * @param pronunciations the pronunciations of this word%0A     */%0A    Word(String spelling, Pronunciation%5B%5D pronunciations) %7B%0A%09this.spelling = spelling;%0A        this.pronunciations = pronunciations;%0A    %7D%0A%0A%0A    /**%0A     * Returns the spelling of the word.%0A     * %0A     * @return the spelling of the word%0A     */%0A    public String getSpelling() %7B%0A%09return spelling;%0A    %7D%0A%0A    /**%0A     * Retrieves the pronunciations of this word%0A     * %0A     * @param wordClassification the classification of the word%0A     * (typically part of speech classification) or null if all word%0A     * classifications are acceptable. The word classification must be%0A     * one of the set returned by %0A     * %3Ccode%3EDictionary.getPossibleWordClassifications%3C/code%3E%0A     *%0A     * @return the pronunciations of this word%0A     */%0A    public Pronunciation%5B%5D getPronunciations%0A        (WordClassification wordClassification) %7B%0A%09return pronunciations;%0A    %7D%0A%0A    /**%0A     * Returns a string representation of this word, which is the spelling%0A     *%0A     * @return the spelling of this word%0A     */%0A    public String toString() %7B%0A        return spelling;%0A    %7D%0A%7D%0A%0A

Represents a Word.