|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.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 |
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(java.lang.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, getRelation, getSentence, getSource, productOfArgs, toString |
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 ChunkedBinaryExtraction
public boolean equals(java.lang.Object obj)
equals
in class ChunkedBinaryExtraction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |