Package lingscope.algorithms
Class CrfAnnotator
- java.lang.Object
-
- lingscope.algorithms.Annotator
-
- lingscope.algorithms.CrfAnnotator
-
public class CrfAnnotator extends Annotator
A CRF based annotator- Author:
- shashank
-
-
Constructor Summary
Constructors Constructor Description CrfAnnotator(String beginTag, String interTag, String otherTag)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotatedSentenceannotateSentence(String sentence, boolean isTokenized)voidloadAnnotator(InputStream is)voidserializeAnnotator(String trainingFile, String modelFile)-
Methods inherited from class lingscope.algorithms.Annotator
isTargetNegated, loadAnnotator
-
-
-
-
Method Detail
-
serializeAnnotator
public void serializeAnnotator(String trainingFile, String modelFile)
- Specified by:
serializeAnnotatorin classAnnotator
-
annotateSentence
public AnnotatedSentence annotateSentence(String sentence, boolean isTokenized)
- Specified by:
annotateSentencein classAnnotator
-
loadAnnotator
public void loadAnnotator(InputStream is)
- Specified by:
loadAnnotatorin classAnnotator
-
-