public class Sentence extends ArrayList<Word>
| Modifier and Type | Field and Description |
|---|---|
Comparator<Word> |
wordComparator |
modCount| Constructor and Description |
|---|
Sentence(is2.data.SentenceData09 data,
boolean skipTree) |
Sentence(String[] words,
String[] lemmas,
String[] tags,
String[] morphs) |
| Modifier and Type | Method and Description |
|---|---|
void |
buildDependencyTree() |
void |
buildSemanticTree() |
String[] |
getFeats() |
String[] |
getFormArray() |
String[] |
getPOSArray() |
List<Predicate> |
getPredicates() |
void |
makePredicate(int wordIndex) |
static Sentence |
newDepsOnlySentence(String[] lines) |
static Sentence |
newSentence(String[] lines) |
static Sentence |
newSRLOnlySentence(String[] lines) |
void |
setHeadsAndDeprels(int[] heads,
String[] deprels) |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic final Comparator<Word> wordComparator
public void buildDependencyTree()
public void buildSemanticTree()
public String toString()
toString in class AbstractCollection<Word>public void makePredicate(int wordIndex)
public String[] getFormArray()
public String[] getPOSArray()
public String[] getFeats()
public void setHeadsAndDeprels(int[] heads,
String[] deprels)
Copyright © 2016. All rights reserved.