|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.Extraction2TaggingReduction edu.cmu.minorthird.text.learn.BeginContinueEndUniqueReduction
public class BeginContinueEndUniqueReduction
Reducing an extraction task to tagging tokens as one of five categories. The categories are: a token beginning the type to extract, a token ending the type to extract, a single token which is the type to extract, otherwise inside the type to extract, or outside the type to extract.
Constructor Summary | |
---|---|
BeginContinueEndUniqueReduction()
|
Method Summary | |
---|---|
void |
extractFromTags(java.lang.String output,
MonotonicTextLabels taggedLabels)
Return a TextLabels in which tagged tokens are used to solve the extraction problem. |
java.util.Set<java.lang.String> |
getNonDefaultTagValues()
Get all the tag values that were used. |
TextLabels |
getTaggedLabels()
Return the TextLabels holding the tags which encode the extraction task. |
java.lang.String |
getTokenProp()
Return the token property used for the tags which encode the extraction task. |
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 edu.cmu.minorthird.text.learn.Extraction2TaggingReduction |
---|
assignDefaultLabels |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeginContinueEndUniqueReduction()
Method Detail |
---|
public void reduceExtraction2Tagging(AnnotationExample example)
Extraction2TaggingReduction
reduceExtraction2Tagging
in class Extraction2TaggingReduction
public java.lang.String getTokenProp()
Extraction2TaggingReduction
getTokenProp
in class Extraction2TaggingReduction
public java.util.Set<java.lang.String> getNonDefaultTagValues()
Extraction2TaggingReduction
getNonDefaultTagValues
in class Extraction2TaggingReduction
public TextLabels getTaggedLabels()
Extraction2TaggingReduction
getTaggedLabels
in class Extraction2TaggingReduction
public void extractFromTags(java.lang.String output, MonotonicTextLabels taggedLabels)
extractFromTags
in class Extraction2TaggingReduction
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |