|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.text.learn.Extraction2TaggingReduction
public abstract class Extraction2TaggingReduction
A scheme for reducing an extraction task to a tagging task.
| Constructor Summary | |
|---|---|
Extraction2TaggingReduction()
|
|
| Method Summary | |
|---|---|
protected void |
assignDefaultLabels(Span doc,
MonotonicTextLabels taggedLabels,
java.lang.String spanType,
java.lang.String spanProp)
Label all tokens as negative, including ones which are inside a span to be extracted. |
abstract void |
extractFromTags(java.lang.String output,
MonotonicTextLabels labels)
Alter a TextLabels object with tagged tokens by using them to solve the extraction problem. |
abstract java.util.Set<java.lang.String> |
getNonDefaultTagValues()
Get all the tag values that were used. |
abstract TextLabels |
getTaggedLabels()
Return the TextLabels holding the tags which encode the extraction task. |
abstract java.lang.String |
getTokenProp()
Return the token property used for the tags which encode the extraction task. |
abstract void |
reduceExtraction2Tagging(AnnotationExample example)
Convert the information in a single annotation example to token 'tags' (token properties, assigned to every token). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Extraction2TaggingReduction()
| Method Detail |
|---|
public abstract void reduceExtraction2Tagging(AnnotationExample example)
public abstract java.lang.String getTokenProp()
public abstract java.util.Set<java.lang.String> getNonDefaultTagValues()
public abstract TextLabels getTaggedLabels()
public abstract void extractFromTags(java.lang.String output,
MonotonicTextLabels labels)
protected void assignDefaultLabels(Span doc,
MonotonicTextLabels taggedLabels,
java.lang.String spanType,
java.lang.String spanProp)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||