public class Comma extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int |
commaPosition |
Modifier | Constructor and Description |
---|---|
protected |
Comma(int commaPosition,
CommaSRLSentence s)
Comma constructor for when labels are not known
|
protected |
Comma(int commaPosition,
CommaSRLSentence s,
List<String> labels)
Comma constructor when labels are known
|
protected Comma(int commaPosition, CommaSRLSentence s, List<String> labels)
commaPosition
- The token index of the commas
- The tokenized string of the sentenceprotected Comma(int commaPosition, CommaSRLSentence s)
commaPosition
- The token index of the commas
- The tokenized string of the sentencepublic static void useGoldFeatures(boolean useGold)
public String getCommaID()
public String getLabel()
public int getPosition()
public CommaSRLSentence getSentence()
public TextAnnotation getTextAnnotation(boolean gold)
public String getWordToRight(int distance)
public String getWordToLeft(int distance)
public String getPOSToLeft(int distance)
public String getPOSToRight(int distance)
public Constituent getChunkToRightOfComma(int distance)
public Constituent getChunkToLeftOfComma(int distance)
public Constituent getPhraseToLeftOfComma(int distance)
public Constituent getPhraseToRightOfComma(int distance)
public Constituent getPhraseToLeftOfParent(int distance)
public Constituent getPhraseToRightOfParent(int distance)
public String[] getLeftToRightDependencies()
public String[] getRightToLeftDependencies()
public Constituent getCommaConstituentFromTree(TreeView parseView)
public Constituent getSiblingToLeft(int distance, Constituent c, TreeView parseView)
public Constituent getSiblingToRight(int distance, Constituent c, TreeView parseView)
public List<Comma> getSiblingCommas()
public boolean isSibling(Comma otherComma)
public Comma getSiblingCommaHead()
public String getNotation(Constituent c)
public String getStrippedNotation(Constituent c)
public String getNamedEntityTag(Constituent c)
public String getBayraktarLabel()
public String getBayraktarPattern()
public String[] getWordNgrams()
public String[] getPOSNgrams()
public String[] getChunkNgrams()
public String[] getSiblingPhraseNgrams()
public String[] getParentSiblingPhraseNgrams()
public String getAnnotatedText()
public String getBayraktarAnnotatedText()
Copyright © 2017. All rights reserved.