Package cc.mallet.types
Class MalletAlphabetWrapper
java.lang.Object
cc.mallet.types.Alphabet
cc.mallet.types.MalletAlphabetWrapper
- All Implemented Interfaces:
Serializable,Iterable<String>,org.dice_research.topicmodeling.utils.vocabulary.Vocabulary
public class MalletAlphabetWrapper
extends cc.mallet.types.Alphabet
implements org.dice_research.topicmodeling.utils.vocabulary.Vocabulary
- See Also:
- Serialized Form
-
Field Summary
FieldsFields inherited from class cc.mallet.types.Alphabet
entries, entryClass, growthStopped, instanceId, mapFields inherited from interface org.dice_research.topicmodeling.utils.vocabulary.Vocabulary
WORD_NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic MalletAlphabetWrappercreateFromVocabulary(org.dice_research.topicmodeling.utils.vocabulary.Vocabulary vocabulary)cc.mallet.types.AlphabetgetWord(int wordId)voidMethods inherited from class cc.mallet.types.Alphabet
alphabetsMatch, clone, contains, dump, dump, dump, entryClass, getInstanceId, growthStopped, iterator, lookupIndex, lookupIndex, lookupIndices, lookupObject, lookupObjects, lookupObjects, readResolve, setInstanceId, size, startGrowth, stopGrowth, toArray, toArray, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.dice_research.topicmodeling.utils.vocabulary.Vocabulary
iterator, size
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Details
-
MalletAlphabetWrapper
public MalletAlphabetWrapper(cc.mallet.types.Alphabet alphabet)
-
-
Method Details
-
add
- Specified by:
addin interfaceorg.dice_research.topicmodeling.utils.vocabulary.Vocabulary
-
getId
- Specified by:
getIdin interfaceorg.dice_research.topicmodeling.utils.vocabulary.Vocabulary
-
getAlphabet
public cc.mallet.types.Alphabet getAlphabet() -
getWord
- Specified by:
getWordin interfaceorg.dice_research.topicmodeling.utils.vocabulary.Vocabulary
-
createFromVocabulary
public static MalletAlphabetWrapper createFromVocabulary(org.dice_research.topicmodeling.utils.vocabulary.Vocabulary vocabulary) -
setWord
- Specified by:
setWordin interfaceorg.dice_research.topicmodeling.utils.vocabulary.Vocabulary
-