public class PairAttributeCalculator extends AttributeCalculator
Modifier and Type | Field and Description |
---|---|
protected Annotation |
a1 |
protected Annotation |
a2 |
(package private) boolean |
alias |
protected java.lang.String |
es1 |
protected java.lang.String |
es2 |
protected Markable |
m1 |
protected Markable |
m2 |
protected java.lang.String |
ms1 |
protected java.lang.String |
ms2 |
hbe, hbs, jcas, stopwords
Constructor and Description |
---|
PairAttributeCalculator(JCas jcas,
Markable m1,
Markable m2) |
Modifier and Type | Method and Description |
---|---|
boolean |
calcAlias() |
boolean |
calcAliasAnatomy() |
boolean |
calcAliasDisorder() |
boolean |
calcAliasDrug() |
boolean |
calcAliasFinding() |
boolean |
calcAliasProcedure() |
boolean |
calcBothDefinitesC() |
boolean |
calcBothDefinitesI() |
boolean |
calcBothDefinitesNA() |
boolean |
calcBothPronouns() |
boolean |
calcBothPronounsC() |
boolean |
calcBothPronounsI() |
boolean |
calcBothPronounsNA() |
boolean |
calcClosestComp() |
boolean |
calcDefinite1() |
boolean |
calcDefinite2() |
boolean |
calcDemonstrative2() |
boolean |
calcEndMatch() |
boolean |
calcEntityEndMatch() |
boolean |
calcEntityExactMatch() |
boolean |
calcEntityStartMatch() |
boolean |
calcExactMatch() |
boolean |
calcIndefinite() |
boolean |
calcIsAnatomicalSite() |
boolean |
calcIsDisorder() |
boolean |
calcIsDrug() |
boolean |
calcIsFinding() |
boolean |
calcIsProcedure() |
boolean |
calcMidMatch() |
boolean |
calcModifier() |
boolean |
calcNegatedBoth() |
boolean |
calcNonNegatedBoth() |
boolean |
calcNPHead() |
boolean |
calcNumberMatchC() |
boolean |
calcNumberMatchI() |
boolean |
calcNumberMatchNA() |
double |
calcPermStrDist() |
boolean |
calcPronoun() |
boolean |
calcPronoun1() |
boolean |
calcPronoun2() |
boolean |
calcProStr() |
java.lang.String |
calcSameSection()
Determine whether the markables are located within the same section
|
double |
calcSentenceDistance() |
boolean |
calcSoonStr() |
boolean |
calcSoonStrNonpro() |
boolean |
calcStartMatch() |
boolean |
calcStringMatch() |
double |
calcTokenDistance() |
boolean |
calcWnClass() |
boolean |
calcWnClassC() |
boolean |
calcWnClassI() |
boolean |
calcWnClassNA() |
boolean |
calcWordOverlap() |
boolean |
calcWordsStr() |
boolean |
calcWordsSubstr() |
int |
getSentenceDistance() |
boolean |
isAlias() |
private static boolean |
isProperSubstring(java.util.ArrayList<java.lang.String> l1,
java.util.ArrayList<java.lang.String> l2) |
private static java.lang.String |
nonDetSubstr(java.lang.String s) |
private static java.lang.String |
removeArticleAndDemon(java.lang.String s) |
basicNumber, containedTokens, contentWords, contentWords, isDefinite, isDemonstrative, isPronominal, isPronoun, number, setStopWordsList
protected Markable m1
protected Markable m2
protected java.lang.String ms1
protected java.lang.String ms2
protected java.lang.String es1
protected java.lang.String es2
protected Annotation a1
protected Annotation a2
boolean alias
public java.lang.String calcSameSection()
public double calcTokenDistance()
public double calcSentenceDistance()
public int getSentenceDistance()
public boolean calcExactMatch()
public boolean calcStartMatch()
public boolean calcMidMatch()
public boolean calcEndMatch()
public boolean calcStringMatch()
public boolean calcEntityExactMatch()
public boolean calcEntityStartMatch()
public boolean calcEntityEndMatch()
public boolean calcSoonStr()
private static java.lang.String nonDetSubstr(java.lang.String s)
public boolean calcPronoun1()
public boolean calcPronoun2()
public boolean calcDefinite2()
public boolean calcDemonstrative2()
public boolean calcNumberMatchC()
public boolean calcNumberMatchI()
public boolean calcNumberMatchNA()
public boolean calcWnClassC()
public boolean calcWnClassI()
public boolean calcWnClassNA()
public boolean calcWnClass()
public boolean calcAlias()
public boolean isAlias()
public boolean calcProStr()
public boolean calcWordsStr()
private static java.lang.String removeArticleAndDemon(java.lang.String s)
public boolean calcSoonStrNonpro()
public boolean calcWordOverlap()
public boolean calcModifier()
private static boolean isProperSubstring(java.util.ArrayList<java.lang.String> l1, java.util.ArrayList<java.lang.String> l2)
public boolean calcWordsSubstr()
public boolean calcBothDefinitesC()
public boolean calcBothDefinitesI()
public boolean calcBothDefinitesNA()
public boolean calcBothPronounsC()
public boolean calcBothPronounsI()
public boolean calcBothPronounsNA()
public boolean calcBothPronouns()
public boolean calcIndefinite()
public boolean calcPronoun()
public boolean calcDefinite1()
public boolean calcIsDrug()
public boolean calcIsDisorder()
public boolean calcIsFinding()
public boolean calcIsProcedure()
public boolean calcIsAnatomicalSite()
public boolean calcNegatedBoth()
public boolean calcNonNegatedBoth()
public boolean calcClosestComp()
public boolean calcNPHead()
public double calcPermStrDist()
public boolean calcAliasDrug()
public boolean calcAliasDisorder()
public boolean calcAliasFinding()
public boolean calcAliasProcedure()
public boolean calcAliasAnatomy()