public class SimpleAnalyzerModel
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SimpleAnalyzerModel() |
| Modifier and Type | Method and Description |
|---|---|
SimpleAnalyzerInstance |
getInstance(AnalyzerInstance instance) |
int |
getNumTags() |
SymbolTable<AnalyzerTag> |
getTagTable() |
double[] |
getWeights() |
void |
init(java.util.Collection<SimpleAnalyzerInstance> instances,
java.lang.String dictfile) |
boolean |
isUnknown(AnalyzerInstance instance) |
void |
score(SimpleAnalyzerInstance instance,
double[] scores) |
void |
setWeights(double[] weights) |
void |
update(SimpleAnalyzerInstance instance,
double[] updates) |
public void init(java.util.Collection<SimpleAnalyzerInstance> instances, java.lang.String dictfile)
public double[] getWeights()
public void setWeights(double[] weights)
public int getNumTags()
public void score(SimpleAnalyzerInstance instance, double[] scores)
public void update(SimpleAnalyzerInstance instance, double[] updates)
public SimpleAnalyzerInstance getInstance(AnalyzerInstance instance)
public SymbolTable<AnalyzerTag> getTagTable()
public boolean isUnknown(AnalyzerInstance instance)