Modifier and Type | Field and Description |
---|---|
protected Map<String,Integer> |
categoryMap |
protected List<GenericDictionaryEntry> |
dictionaryEntries |
Constructor and Description |
---|
UnknownDictionaryCompiler(Map<String,Integer> categoryMap,
OutputStream output) |
Modifier and Type | Method and Description |
---|---|
void |
compile() |
List<GenericDictionaryEntry> |
getDictionaryEntries() |
int[] |
getEntryIndices(String surface) |
int[][] |
makeCategoryReferences() |
int[][] |
makeCosts() |
String[][] |
makeFeatures() |
void |
printFeatures(String[][] features) |
void |
readUnknownDefinition(InputStream input,
String encoding) |
protected List<GenericDictionaryEntry> dictionaryEntries
public UnknownDictionaryCompiler(Map<String,Integer> categoryMap, OutputStream output)
public void readUnknownDefinition(InputStream input, String encoding) throws IOException
IOException
public int[][] makeCosts()
public String[][] makeFeatures()
public int[][] makeCategoryReferences()
public void printFeatures(String[][] features)
public int[] getEntryIndices(String surface)
public List<GenericDictionaryEntry> getDictionaryEntries()
public void compile() throws IOException
compile
in interface Compiler
IOException
Copyright © 2020. All rights reserved.