public class SentenceTypeClassifier extends Object
| Constructor and Description |
|---|
SentenceTypeClassifier() |
SentenceTypeClassifier(IParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(InputStream modelPath) |
static void |
main(String[] args) |
void |
persist(String modelPath) |
Map<String,Double> |
predict(String sentence) |
Map<String,Double> |
predict(String sentence,
DTree tree) |
void |
train(String trainFilePath) |
public SentenceTypeClassifier()
public SentenceTypeClassifier(IParser parser)
public void train(String trainFilePath) throws IOException
IOExceptionpublic void persist(String modelPath) throws IOException
IOExceptionpublic void loadModel(InputStream modelPath) throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2015. All rights reserved.