Package lingscope.algorithms
Class BaselineAnnotator
- java.lang.Object
-
- lingscope.algorithms.Annotator
-
- lingscope.algorithms.BaselineAnnotator
-
- Direct Known Subclasses:
BaselineCueAnnotator,BaselineScopeAnnotator
public abstract class BaselineAnnotator extends Annotator
The baseline annotator- Author:
- shashank
-
-
Constructor Summary
Constructors Constructor Description BaselineAnnotator(String beginTag, String interTag, String otherTag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<String>getCueWords(String abnerTaggedSentence, String beginTag, String intermediateTag, String otherTag)Gets the set of cue word phrases in the given sentence.voidloadAnnotator(InputStream is)voidserializeAnnotator(String trainingFile, String modelFile)-
Methods inherited from class lingscope.algorithms.Annotator
annotateSentence, isTargetNegated, loadAnnotator
-
-
-
-
Method Detail
-
serializeAnnotator
public void serializeAnnotator(String trainingFile, String modelFile)
- Specified by:
serializeAnnotatorin classAnnotator
-
loadAnnotator
public void loadAnnotator(InputStream is)
- Specified by:
loadAnnotatorin classAnnotator
-
getCueWords
public static Set<String> getCueWords(String abnerTaggedSentence, String beginTag, String intermediateTag, String otherTag)
Gets the set of cue word phrases in the given sentence. The given sentence is tagged according to Abner's specifications- Parameters:
abnerTaggedSentence- sentence tagged by abner's specification.beginTag- the tag to mark the beginning of the cueintermediateTag- the tag to mark intermediate portionsotherTag- the other tag- Returns:
- the set of cue words or phrases in the given sentence
-
-