public class LabeledBinaryExtraction extends ChunkedBinaryExtraction
ChunkedBinaryExtraction class to have a binary
label.| Modifier and Type | Field and Description |
|---|---|
static int |
NEG
the negative class label
|
static int |
POS
the positive class label
|
ARG1, ARG2, REL| Constructor and Description |
|---|
LabeledBinaryExtraction(ChunkedBinaryExtraction extr,
int label)
Constructs a new LabeledBinaryExtraction with the given label.
|
LabeledBinaryExtraction(ChunkedExtraction relation,
ChunkedArgumentExtraction argument1,
ChunkedArgumentExtraction argument2,
int label)
Constructs a new LabeledBinaryExtraction with the given label
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isNegative() |
boolean |
isPositive() |
void |
setNegative()
Sets the label to negative.
|
void |
setPositive()
Sets the label to positive.
|
getArgument1, getArgument2, getChunkTags, getIndices, getPosTags, getRelation, getTokens, productOfArgs, productOfArgs, toStringgetField, getField, getFieldName, getFieldNames, getFieldRange, getFieldRange, getFieldRanges, getFields, getNumFields, getProperties, getProperty, getPropertyNames, getSentence, hasField, hasProperty, setProperties, setProperty, toBIOLayerpublic static final int POS
public static final int NEG
public LabeledBinaryExtraction(ChunkedExtraction relation, ChunkedArgumentExtraction argument1, ChunkedArgumentExtraction argument2, int label)
relation - argument1 - argument2 - label - either LabeledBinaryExtraction.POS or
LabeledBinaryExtraction.NEG.public LabeledBinaryExtraction(ChunkedBinaryExtraction extr, int label)
extr - an existing extractionlabel - either LabeledBinaryExtraction.POS or
LabeledBinaryExtraction.NEG.public void setPositive()
public void setNegative()
public boolean isPositive()
public boolean isNegative()
public int hashCode()
hashCode in class SpanExtractionpublic boolean equals(Object obj)
equals in class SpanExtractionCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.