Package lingscope.algorithms.negex
Class GenNegEx
- java.lang.Object
-
- lingscope.algorithms.negex.GenNegEx
-
public class GenNegEx extends Object
Author: Imre Solti Date: 09/15/2008 Modified: 04/15/2009 Changed to specifications of test kit and discussions with WC and PH. Modified: 04/26/2009 Fixed the deletion of last character in scope fo PREN, PREP negation scopes. Wendy Chapman's NegEx algorithm in Java. Sentence boundaries serve as WINDOW for negation (suggested by Wendy Chapman)
-
-
Constructor Summary
Constructors Constructor Description GenNegEx()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCue(String sentenceString, List<String> ruleStrings, String beginTag, String interTag, String otherTag)StringgetPreviousRunScope()StringgetScope(String sentenceString, List<String> ruleStrings, String beginTag, String interTag, String otherTag)StringnegCheck(String sentenceString, String phraseString, ArrayList ruleStrings, boolean negatePossible)voidtagNegation(String sentenceString, List<String> ruleStrings)
-
-
-
Method Detail
-
getCue
public String getCue(String sentenceString, List<String> ruleStrings, String beginTag, String interTag, String otherTag)
-
getScope
public String getScope(String sentenceString, List<String> ruleStrings, String beginTag, String interTag, String otherTag)
-
negCheck
public String negCheck(String sentenceString, String phraseString, ArrayList ruleStrings, boolean negatePossible) throws Exception
- Throws:
Exception
-
getPreviousRunScope
public String getPreviousRunScope()
-
-