Class ParenthesisPostProcessor

  • All Implemented Interfaces:
    PostProcessor

    public class ParenthesisPostProcessor
    extends Object
    implements PostProcessor
    This class removes Mentions which contain a mismatched parenthesis ("(" or ")"), square bracket ("[" or "]") or curly bracket ("{" or "}").
    Author:
    Bob
    • Constructor Detail

    • Method Detail

      • isStart

        public static boolean isStart​(String text)
      • isEnd

        public static boolean isEnd​(String text)
      • postProcess

        public void postProcess​(Sentence sentence)
        Removes Mentions which contain a mismatched parenthesis ("(" or ")"), square bracket ("[" or "]") or curly bracket ("{" or "}").
        Specified by:
        postProcess in interface PostProcessor
        Parameters:
        sentence - The Sentence to perform post-processing on