public class NumberModel extends Object implements TestNumberModel, TrainSimilarityModel
Modifier and Type | Method and Description |
---|---|
NumberEnum |
getNumber(Context ec) |
int |
getPluralIndex() |
int |
getSingularIndex() |
double[] |
numberDist(Context c) |
void |
setExtents(Context[] extentContexts)
Creates simialrity training pairs based on the specified extents.
|
static TestNumberModel |
testModel(String name) |
void |
trainModel() |
static TrainSimilarityModel |
trainModel(String modelName) |
public static TestNumberModel testModel(String name) throws IOException
IOException
public static TrainSimilarityModel trainModel(String modelName) throws IOException
IOException
public NumberEnum getNumber(Context ec)
public void setExtents(Context[] extentContexts)
TrainSimilarityModel
setExtents
in interface TrainSimilarityModel
public double[] numberDist(Context c)
numberDist
in interface TestNumberModel
public int getSingularIndex()
getSingularIndex
in interface TestNumberModel
public int getPluralIndex()
getPluralIndex
in interface TestNumberModel
public void trainModel() throws IOException
trainModel
in interface TrainSimilarityModel
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.