Class AnnotatedSentence


  • public class AnnotatedSentence
    extends Object
    Represents an AnnotatedSentence
    Author:
    shashank
    • 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:
      • getTags

        public List<String> getTags()
        Gets the tags in this AnnotatedSentence
        Returns:
      • getWords

        public List<String> getWords()
        Gets the words in this AnnotatedSentence
        Returns:
      • getSentenceText

        public String getSentenceText()
        Gets the sentence text (without the tags)
        Returns: