Package lingscope.structures
Class AnnotatedSentence
- java.lang.Object
-
- lingscope.structures.AnnotatedSentence
-
public class AnnotatedSentence extends Object
Represents an AnnotatedSentence- Author:
- shashank
-
-
Field Summary
Fields Modifier and Type Field Description static StringnonScopeTag
-
Constructor Summary
Constructors Constructor Description AnnotatedSentence()Initializes an AnnotatedSentence objectAnnotatedSentence(String rawText)Creates an object of AnnotatedSentence with the given rawText
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Boolean>getIsAnnotatedTags()Gets the is annotated tags for this AnnotatedSentenceStringgetRawText()Gets the raw text (with tags) for this AnnotatedSentenceStringgetSentenceText()Gets the sentence text (without the tags)List<String>getTags()Gets the tags in this AnnotatedSentenceList<String>getWords()Gets the words in this AnnotatedSentencevoidprocessRawText(String rawText)Processes the given raw text and extracts tags from it
-
-
-
Field Detail
-
nonScopeTag
public static String nonScopeTag
-
-
Constructor Detail
-
AnnotatedSentence
public AnnotatedSentence()
Initializes an AnnotatedSentence object
-
AnnotatedSentence
public AnnotatedSentence(String rawText)
Creates an object of AnnotatedSentence with the given rawText- Parameters:
rawText-
-
-
Method Detail
-
processRawText
public final void processRawText(String rawText)
Processes the given raw text and extracts tags from it- Parameters:
rawText-
-
getIsAnnotatedTags
public List<Boolean> getIsAnnotatedTags()
Gets the is annotated tags for this AnnotatedSentence- Returns:
-
getRawText
public String getRawText()
Gets the raw text (with tags) for this AnnotatedSentence- Returns:
-
getSentenceText
public String getSentenceText()
Gets the sentence text (without the tags)- Returns:
-
-