|
||||||||||
| 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
edu.washington.cs.knowitall.extractor.conf.LabeledBinaryExtraction
public class LabeledBinaryExtraction
Extends the ChunkedBinaryExtraction class to have a binary
label.
| Field Summary | |
|---|---|
static int |
NEG
the negative class label |
static int |
POS
the positive class label |
| Fields inherited from class edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction |
|---|
ARG1, ARG2, REL |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
isNegative()
|
boolean |
isPositive()
|
void |
setNegative()
Sets the label to negative. |
void |
setPositive()
Sets the label to positive. |
| Methods inherited from class edu.washington.cs.knowitall.nlp.extraction.ChunkedBinaryExtraction |
|---|
getArgument1, getArgument2, getChunkTags, getIndices, getPosTags, getRelation, getTokens, productOfArgs, productOfArgs, toString |
| Methods inherited from class edu.washington.cs.knowitall.nlp.extraction.SpanExtraction |
|---|
getField, getField, getFieldName, getFieldNames, getFieldRange, getFieldRange, getFieldRanges, getFields, getNumFields, getProperties, getProperty, getPropertyNames, getSentence, hasField, hasProperty, setProperties, setProperty, toBIOLayer |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int POS
public static final int NEG
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 SpanExtraction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||