public class Tokenizer extends Object
| Constructor and Description |
|---|
Tokenizer() |
| Modifier and Type | Method and Description |
|---|---|
cc.mallet.fst.CRF |
getModel() |
ArrayList<Unit> |
predict(String sentence)
do the prediction
|
void |
readModel(File file)
load a previously trained FeatureSubsetModel (CRF4+Properties) which was
stored as serialized object to disk.
|
void |
readModel(InputStream is) |
public cc.mallet.fst.CRF getModel()
public ArrayList<Unit> predict(String sentence)
original - sentencepublic void readModel(File file) throws IOException, FileNotFoundException, ClassNotFoundException
filename - where to find the serialized featureSubsetModel (full path!)IOExceptionFileNotFoundExceptionClassNotFoundExceptionpublic void readModel(InputStream is) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2015 JULIE Lab Jena, Germany. All rights reserved.