Class Annotator

    • Field Detail

      • beginTag

        protected String beginTag
      • interTag

        protected String interTag
      • otherTag

        protected String otherTag
    • Constructor Detail

    • Method Detail

      • serializeAnnotator

        public abstract void serializeAnnotator​(String trainingFile,
                                                String modelFile)
      • loadAnnotator

        public void loadAnnotator​(String modelFile)
      • loadAnnotator

        public abstract void loadAnnotator​(InputStream is)
      • isTargetNegated

        public boolean isTargetNegated​(String sentence,
                                       boolean isTokenized,
                                       String targetPhrase)
        Checks if the given target phrase is negated in the given sentence. Only the first word of the target phrase is used
        Parameters:
        sentence -
        isTokenized -
        targetPhrase -
        Returns: