public class ChunkedBinaryExtraction extends SpanExtraction
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.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
ChunkedBinaryExtraction(ChunkedExtraction rel,
ChunkedArgumentExtraction arg1,
ChunkedArgumentExtraction arg2)
Constructs a new instance using the given relation and arguments.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
equals, getField, getField, getFieldName, getFieldNames, getFieldRange, getFieldRange, getFieldRanges, getFields, getNumFields, getProperties, getProperty, getPropertyNames, getSentence, hasField, hashCode, hasProperty, setProperties, setProperty, toBIOLayerpublic static final String ARG1
SpanExtraction).public static final String REL
SpanExtraction).public static final String ARG2
SpanExtraction)public ChunkedBinaryExtraction(ChunkedExtraction rel, ChunkedArgumentExtraction arg1, ChunkedArgumentExtraction arg2)
rel - arg1 - arg2 - public ChunkedArgumentExtraction getArgument1()
public ChunkedExtraction getRelation()
public ChunkedArgumentExtraction getArgument2()
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 - Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.