public class MalletAlphabetWrapper
extends cc.mallet.types.Alphabet
implements org.dice_research.topicmodeling.utils.vocabulary.Vocabulary
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
MalletAlphabetWrapper(cc.mallet.types.Alphabet alphabet) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String word) |
static MalletAlphabetWrapper |
createFromVocabulary(org.dice_research.topicmodeling.utils.vocabulary.Vocabulary vocabulary) |
cc.mallet.types.Alphabet |
getAlphabet() |
Integer |
getId(String word) |
String |
getWord(int wordId) |
void |
setWord(String word,
String newWord) |
alphabetsMatch, clone, contains, dump, dump, dump, entryClass, getInstanceId, growthStopped, iterator, lookupIndex, lookupIndex, lookupIndices, lookupObject, lookupObjects, lookupObjects, readResolve, setInstanceId, size, startGrowth, stopGrowth, toArray, toArray, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waititerator, sizeforEach, spliteratorprivate static final long serialVersionUID
public MalletAlphabetWrapper(cc.mallet.types.Alphabet alphabet)
public void add(String word)
add in interface org.dice_research.topicmodeling.utils.vocabulary.Vocabularypublic Integer getId(String word)
getId in interface org.dice_research.topicmodeling.utils.vocabulary.Vocabularypublic cc.mallet.types.Alphabet getAlphabet()
public String getWord(int wordId)
getWord in interface org.dice_research.topicmodeling.utils.vocabulary.Vocabularypublic static MalletAlphabetWrapper createFromVocabulary(org.dice_research.topicmodeling.utils.vocabulary.Vocabulary vocabulary)
Copyright © 2015–2020. All rights reserved.