Package banner.postprocessing
Class ParenthesisPostProcessor
- java.lang.Object
-
- banner.postprocessing.ParenthesisPostProcessor
-
- All Implemented Interfaces:
PostProcessor
public class ParenthesisPostProcessor extends Object implements PostProcessor
This class removesMentions which contain a mismatched parenthesis ("(" or ")"), square bracket ("[" or "]") or curly bracket ("{" or "}").- Author:
- Bob
-
-
Constructor Summary
Constructors Constructor Description ParenthesisPostProcessor()Creates a new instance ofParenthesisPostProcessor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanisEnd(String text)static booleanisStart(String text)voidpostProcess(Sentence sentence)RemovesMentions which contain a mismatched parenthesis ("(" or ")"), square bracket ("[" or "]") or curly bracket ("{" or "}").
-
-
-
Constructor Detail
-
ParenthesisPostProcessor
public ParenthesisPostProcessor()
Creates a new instance ofParenthesisPostProcessor
-
-
Method Detail
-
isStart
public static boolean isStart(String text)
-
isEnd
public static boolean isEnd(String text)
-
postProcess
public void postProcess(Sentence sentence)
RemovesMentions which contain a mismatched parenthesis ("(" or ")"), square bracket ("[" or "]") or curly bracket ("{" or "}").- Specified by:
postProcessin interfacePostProcessor- Parameters:
sentence- TheSentenceto perform post-processing on
-
-