public class Predicate extends Word
Word.WordDataWORD_LINEAR_ORDER_COMPARATOR| Constructor and Description |
|---|
Predicate(String[] CoNLL2009Columns,
Sentence s,
int idx)
Only use this constructor if you manually add the other attributes later on (i.e.
|
Predicate(Word w)
Used to replace an old word with a predicate (updates dependencies).
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArgMap(Word w,
String label) |
Map<Word,String> |
getArgMap() |
String |
getArgumentTag(Word w) |
String |
getAttr(Word.WordData attr) |
String |
getSense() |
void |
setArgMap(Map<Word,String> argmap) |
void |
setSense(String sense) |
String |
toString()
Converts this Word object one line following the CoNLL 2009 format.
|
findPath, getArg, getChildren, getDeprel, getFeats, getForm, getHead, getHeadId, getIdx, getLeftmostDep, getLeftSibling, getLemma, getMySentence, getPOS, getPotentialArgument, getRightmostDep, getRightSibling, getYield, isBOS, isPassiveVoiceEng, pathToRoot, setChildren, setDeprel, setHead, setPotentialArgumentpublic Predicate(Word w)
w - The Wordpublic String getSense()
public void setSense(String sense)
public String getAttr(Word.WordData attr)
Copyright © 2016. All rights reserved.