|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.extraction.RelationExtraction
public class RelationExtraction
A relation extraction.
| Constructor Summary | |
|---|---|
RelationExtraction(Sentence source,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction extraction)
|
|
RelationExtraction(Sentence source,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction extraction,
String predString,
String arg1String,
String arg2String)
|
|
RelationExtraction(Sentence source,
Long id,
PredicateExtraction predicate,
ArgumentExtraction argument1,
ArgumentExtraction argument2)
|
|
RelationExtraction(Sentence source,
PredicateExtraction predicate,
ArgumentExtraction argument1,
ArgumentExtraction argument2)
|
|
| Method Summary | |
|---|---|
ArgumentExtraction |
arg1()
The first argument. |
ArgumentExtraction |
arg2()
The second argument. |
boolean |
equals(Object that)
|
static RelationExtraction |
fromXmlElement(org.jdom.Element e,
Sentence sentence)
|
Iterable<String> |
getChunkTags()
|
Long |
getId()
|
Iterable<String> |
getLemmas()
|
TokenSequence |
getPart(ExtractionPart part)
Retrieve a TokenSequence that corresponds to the specified part. |
Iterable<String> |
getPosTags()
|
edu.washington.cs.knowitall.commonlib.Range |
getRange()
The range of the extraction. |
Sentence |
getSource()
|
Iterable<String> |
getTokens()
|
String |
getTokensAsString()
|
Iterable<Type> |
getTypes()
|
boolean |
isNegated()
|
boolean |
isPassive()
Determine if the extraction has the passive voice. |
Extraction |
left()
An Extraction that covers the sentence to the left of this
extraction. |
edu.washington.cs.knowitall.commonlib.Range |
leftRange()
The range of the sentence to the left of the extraction. |
PredicateExtraction |
predicate()
The predicate. |
Extraction |
right()
An Extraction that covers the sentence to the right of this
extraction. |
edu.washington.cs.knowitall.commonlib.Range |
rightRange()
The range of the sentence to the right of the extraction. |
void |
tag(Iterable<Type> tags)
Add types to this extraction if they overlap the expression's range. |
boolean |
tag(Type tag)
Add type to this extraction if they overlap the expression's range. |
String |
toString()
|
org.jdom.Element |
toXmlElement()
|
Iterable<Type> |
types()
The types associated with this extraction. |
List<Token> |
zip()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RelationExtraction(Sentence source,
Long id,
PredicateExtraction predicate,
ArgumentExtraction argument1,
ArgumentExtraction argument2)
public RelationExtraction(Sentence source,
PredicateExtraction predicate,
ArgumentExtraction argument1,
ArgumentExtraction argument2)
public RelationExtraction(Sentence source,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction extraction)
public RelationExtraction(Sentence source,
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction extraction,
String predString,
String arg1String,
String arg2String)
| Method Detail |
|---|
public boolean equals(Object that)
equals in class Objectpublic Sentence getSource()
public ArgumentExtraction arg1()
public ArgumentExtraction arg2()
public PredicateExtraction predicate()
public edu.washington.cs.knowitall.commonlib.Range leftRange()
public edu.washington.cs.knowitall.commonlib.Range rightRange()
public edu.washington.cs.knowitall.commonlib.Range getRange()
public void tag(Iterable<Type> tags)
tags - public boolean tag(Type tag)
tags - public String getTokensAsString()
getTokensAsString in interface TokenSequencepublic String toString()
toString in class Objectpublic Extraction left()
Extraction that covers the sentence to the left of this
extraction.
public Extraction right()
Extraction that covers the sentence to the right of this
extraction.
public TokenSequence getPart(ExtractionPart part)
TokenSequence that corresponds to the specified part.
part -
public boolean isPassive()
public Iterable<Type> types()
public static RelationExtraction fromXmlElement(org.jdom.Element e,
Sentence sentence)
public org.jdom.Element toXmlElement()
toXmlElement in interface XmlSerializablepublic Long getId()
public Iterable<String> getTokens()
getTokens in interface TokenSequencepublic Iterable<String> getLemmas()
getLemmas in interface TokenSequencepublic Iterable<String> getChunkTags()
getChunkTags in interface TokenSequencepublic Iterable<String> getPosTags()
getPosTags in interface TokenSequencepublic Iterable<Type> getTypes()
getTypes in interface TokenSequencepublic List<Token> zip()
zip in interface TokenSequencepublic boolean isNegated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||