public class ClassMap extends java.lang.Object implements Configurable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_CLASS_DEFS_LOCATION |
Constructor and Description |
---|
ClassMap() |
ClassMap(java.net.URL classDefsLocation) |
Modifier and Type | Method and Description |
---|---|
void |
allocate() |
void |
deallocate() |
Word |
getClassAsWord(java.lang.String text) |
edu.cmu.sphinx.linguist.language.classes.ClassProbability |
getClassProbability(java.lang.String word) |
java.util.Set<java.lang.String> |
getWordsInClass(java.lang.String className) |
void |
newProperties(PropertySheet ps)
This method is called when this configurable component needs to be reconfigured.
|
@S4String public static final java.lang.String PROP_CLASS_DEFS_LOCATION
public ClassMap(java.net.URL classDefsLocation)
public ClassMap()
public void newProperties(PropertySheet ps) throws PropertyException
Configurable
newProperties
in interface Configurable
ps
- a property sheet holding the new dataPropertyException
- if there is a problem with the properties.public void allocate() throws java.io.IOException
java.io.IOException
public void deallocate()
public edu.cmu.sphinx.linguist.language.classes.ClassProbability getClassProbability(java.lang.String word)
public Word getClassAsWord(java.lang.String text)
public java.util.Set<java.lang.String> getWordsInClass(java.lang.String className)