|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.nlp.extraction.SpanExtraction
edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction
public class ChunkedBinaryExtraction
Represents a binary extraction from a ChunkedSentence. A binary
extraction has three parts: two arguments (arg1 and arg2) and a relation
(rel). Each of these parts corresponds to a disjoint span of words in a
sentence. The relation is represented as a ChunkedExtraction object,
and the two arguments are represented as ChunkedArgumentExtraction
objects.
| Field Summary | |
|---|---|
static String |
ARG1
The field name for the first argument (see SpanExtraction). |
static String |
ARG2
The field name for the second argument (see SpanExtraction) |
static String |
REL
The field name for the relation (see SpanExtraction). |
| Constructor Summary | |
|---|---|
ChunkedBinaryExtraction(ChunkedExtraction rel,
ChunkedArgumentExtraction arg1,
ChunkedArgumentExtraction arg2)
Constructs a new instance using the given relation and arguments. |
|
| Method Summary | |
|---|---|
ChunkedArgumentExtraction |
getArgument1()
|
ChunkedArgumentExtraction |
getArgument2()
|
Iterable<String> |
getChunkTags()
|
Iterable<Integer> |
getIndices()
|
Iterable<String> |
getPosTags()
|
ChunkedExtraction |
getRelation()
|
Iterable<String> |
getTokens()
|
static Collection<ChunkedBinaryExtraction> |
productOfArgs(ChunkedExtraction rel,
Iterable<? extends ChunkedArgumentExtraction> arg1s,
Iterable<? extends ChunkedArgumentExtraction> arg2s)
Given a collection of arg1s, a collection of arg2s, and a relation, returns all (arg1, rel, arg2) extractions, where arg1 and arg2 range over the given collections. |
static Collection<ChunkedBinaryExtraction> |
productOfArgs(ChunkedExtraction rel,
Iterable<? extends ChunkedArgumentExtraction> arg1s,
Iterable<? extends ChunkedArgumentExtraction> arg2s,
boolean allowUnaryRelations)
Given a collection of arg1s, a collection of arg2s, and a relation, returns all (arg1, rel, arg2) extractions, where arg1 and arg2 range over the given collections. |
String |
toString()
|
| Methods inherited from class edu.washington.cs.knowitall.nlp.extraction.SpanExtraction |
|---|
equals, getField, getField, getFieldName, getFieldNames, getFieldRange, getFieldRange, getFieldRanges, getFields, getNumFields, getProperties, getProperty, getPropertyNames, getSentence, hasField, hashCode, hasProperty, setProperties, setProperty, toBIOLayer |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ARG1
SpanExtraction).
public static final String REL
SpanExtraction).
public static final String ARG2
SpanExtraction)
| Constructor Detail |
|---|
public ChunkedBinaryExtraction(ChunkedExtraction rel,
ChunkedArgumentExtraction arg1,
ChunkedArgumentExtraction arg2)
rel - arg1 - arg2 - | Method Detail |
|---|
public ChunkedArgumentExtraction getArgument1()
public ChunkedExtraction getRelation()
public ChunkedArgumentExtraction getArgument2()
public Iterable<Integer> getIndices()
public Iterable<String> getTokens()
public Iterable<String> getPosTags()
public Iterable<String> getChunkTags()
public String toString()
toString in class Object
public static Collection<ChunkedBinaryExtraction> productOfArgs(ChunkedExtraction rel,
Iterable<? extends ChunkedArgumentExtraction> arg1s,
Iterable<? extends ChunkedArgumentExtraction> arg2s)
rel - arg1s - arg2s -
public static Collection<ChunkedBinaryExtraction> productOfArgs(ChunkedExtraction rel,
Iterable<? extends ChunkedArgumentExtraction> arg1s,
Iterable<? extends ChunkedArgumentExtraction> arg2s,
boolean allowUnaryRelations)
rel - arg1s - arg2s -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||