Package lingscope.algorithms
Class Annotator
- java.lang.Object
-
- lingscope.algorithms.Annotator
-
- Direct Known Subclasses:
BaselineAnnotator,CrfAnnotator,NegexAnnotator
public abstract class Annotator extends Object
- Author:
- shashank
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AnnotatedSentenceannotateSentence(String sentence, boolean isTokenized)booleanisTargetNegated(String sentence, boolean isTokenized, String targetPhrase)Checks if the given target phrase is negated in the given sentence.abstract voidloadAnnotator(InputStream is)voidloadAnnotator(String modelFile)abstract voidserializeAnnotator(String trainingFile, String modelFile)
-
-
-
Method Detail
-
annotateSentence
public abstract AnnotatedSentence annotateSentence(String sentence, boolean isTokenized)
-
loadAnnotator
public void loadAnnotator(String modelFile)
-
loadAnnotator
public abstract void loadAnnotator(InputStream is)
-
-