Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Integer> |
categoryMap |
protected java.util.List<GenericDictionaryEntry> |
dictionaryEntries |
Constructor and Description |
---|
UnknownDictionaryCompiler(java.util.Map<java.lang.String,java.lang.Integer> categoryMap,
java.io.OutputStream output) |
Modifier and Type | Method and Description |
---|---|
void |
compile() |
java.util.List<GenericDictionaryEntry> |
getDictionaryEntries() |
int[] |
getEntryIndices(java.lang.String surface) |
int[][] |
makeCategoryReferences() |
int[][] |
makeCosts() |
java.lang.String[][] |
makeFeatures() |
void |
printFeatures(java.lang.String[][] features) |
void |
readUnknownDefinition(java.io.InputStream input,
java.lang.String encoding) |
protected java.util.Map<java.lang.String,java.lang.Integer> categoryMap
protected java.util.List<GenericDictionaryEntry> dictionaryEntries
public UnknownDictionaryCompiler(java.util.Map<java.lang.String,java.lang.Integer> categoryMap, java.io.OutputStream output)
public void readUnknownDefinition(java.io.InputStream input, java.lang.String encoding) throws java.io.IOException
java.io.IOException
public int[][] makeCosts()
public java.lang.String[][] makeFeatures()
public int[][] makeCategoryReferences()
public void printFeatures(java.lang.String[][] features)
public int[] getEntryIndices(java.lang.String surface)
public java.util.List<GenericDictionaryEntry> getDictionaryEntries()