public class SyntaxAttributeCalculator extends PairAttributeCalculator
Constructor and Description |
---|
SyntaxAttributeCalculator(org.apache.uima.jcas.JCas jcas,
Markable m1,
Markable m2) |
SyntaxAttributeCalculator(org.apache.uima.jcas.JCas jcas,
Markable m1,
Markable m2,
WikiIndex wiki) |
Modifier and Type | Method and Description |
---|---|
String |
calcCatNgrams(Integer i,
Markable m) |
String |
calcDepPath() |
double |
calcEntityWikiSim() |
String |
calcFullPath() |
boolean |
calcNPSubj(TreebankNode n) |
boolean |
calcNPSubj1() |
boolean |
calcNPSubj2() |
boolean |
calcNPSubjBoth() |
String |
calcNPunderPP1() |
String |
calcNPunderPP2() |
String |
calcNPunderS1() |
String |
calcNPunderS2() |
String |
calcNPunderVP1() |
String |
calcNPunderVP2() |
double |
calcPathLength() |
double |
calcSimSum() |
double |
calcWikiSim() |
HashMap<String,Integer> |
getNGrams() |
static int |
getNumDemFeats() |
static int |
getNumNEFeats() |
static int |
getNumPronFeats() |
int |
getPathLength() |
void |
initEntityWikiSim() |
void |
initWikiSim() |
int |
numNgrams(Markable m) |
calcAlias, calcAliasAnatomy, calcAliasDisorder, calcAliasDrug, calcAliasFinding, calcAliasProcedure, calcBothDefinitesC, calcBothDefinitesI, calcBothDefinitesNA, calcBothPronouns, calcBothPronounsC, calcBothPronounsI, calcBothPronounsNA, calcClosestComp, calcDefinite1, calcDefinite2, calcDemonstrative2, calcEndMatch, calcEntityEndMatch, calcEntityExactMatch, calcEntityStartMatch, calcExactMatch, calcIndefinite, calcIsAnatomicalSite, calcIsDisorder, calcIsDrug, calcIsFinding, calcIsProcedure, calcMidMatch, calcModifier, calcNegatedBoth, calcNonNegatedBoth, calcNPHead, calcNumberMatchC, calcNumberMatchI, calcNumberMatchNA, calcPermStrDist, calcPronoun, calcPronoun1, calcPronoun2, calcProStr, calcSameSection, calcSentenceDistance, calcSoonStr, calcSoonStrNonpro, calcStartMatch, calcStringMatch, calcTokenDistance, calcWnClass, calcWnClassC, calcWnClassI, calcWnClassNA, calcWordOverlap, calcWordsStr, calcWordsSubstr, getSentenceDistance, isAlias
containedTokens, contentWords, number, setStopWordsList
public SyntaxAttributeCalculator(org.apache.uima.jcas.JCas jcas, Markable m1, Markable m2)
public static int getNumNEFeats()
public static int getNumDemFeats()
public static int getNumPronFeats()
public String calcNPunderPP1()
public String calcNPunderPP2()
public String calcNPunderS1()
public String calcNPunderS2()
public String calcNPunderVP1()
public String calcNPunderVP2()
public boolean calcNPSubj(TreebankNode n)
public boolean calcNPSubj1()
public boolean calcNPSubj2()
public boolean calcNPSubjBoth()
public void initWikiSim()
public void initEntityWikiSim()
public double calcWikiSim()
public double calcEntityWikiSim()
public double calcSimSum()
public int numNgrams(Markable m) throws UnexpectedException
UnexpectedException
public String calcFullPath()
public double calcPathLength()
public int getPathLength()
public String calcDepPath()
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.