public class Word extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Word.WordData |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Word> |
WORD_LINEAR_ORDER_COMPARATOR |
| Constructor and Description |
|---|
Word(Sentence s) |
Word(String[] CoNLL2009Columns,
Sentence s,
int idx) |
Word(String form,
String lemma,
String POS,
String feats,
Sentence mySentence,
int idx) |
Word(Word w)
Used to replace an old word with a new (updates dependencies).
|
public static final Comparator<Word> WORD_LINEAR_ORDER_COMPARATOR
public Word(Sentence s)
public Word(Word w)
w - The Wordpublic String getAttr(Word.WordData attr)
public String getForm()
public String getLemma()
public String getPOS()
public String getFeats()
public Word getHead()
public int getHeadId()
public String getDeprel()
public Word getPotentialArgument()
public Sentence getMySentence()
public String getArg(int i)
public void setHead(Word h)
public void setDeprel(String deprel)
public void setPotentialArgument(Word potentialArgument)
public boolean isBOS()
public boolean isPassiveVoiceEng()
public Word getLeftSibling()
public Word getRightSibling()
public Word getRightmostDep()
public Word getLeftmostDep()
public String toString()
public Yield getYield(Predicate pred, String argLabel, Set<Word> argSet)
pred - The predicate of the proposition, required to deduce the yieldpublic int getIdx()
Copyright © 2016. All rights reserved.