edu.cmu.minorthird.text.learn
Class BeginContinueEndUniqueReduction

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.Extraction2TaggingReduction
      extended by edu.cmu.minorthird.text.learn.BeginContinueEndUniqueReduction
All Implemented Interfaces:
java.io.Serializable

public class BeginContinueEndUniqueReduction
extends Extraction2TaggingReduction
implements java.io.Serializable

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.

Author:
William Cohen
See Also:
Serialized Form

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

BeginContinueEndUniqueReduction

public BeginContinueEndUniqueReduction()
Method Detail

reduceExtraction2Tagging

public void reduceExtraction2Tagging(AnnotationExample example)
Description copied from class: Extraction2TaggingReduction
Convert the information in a single annotation example to token 'tags' (token properties, assigned to every token).

Specified by:
reduceExtraction2Tagging in class Extraction2TaggingReduction

getTokenProp

public java.lang.String getTokenProp()
Description copied from class: Extraction2TaggingReduction
Return the token property used for the tags which encode the extraction task.

Specified by:
getTokenProp in class Extraction2TaggingReduction

getNonDefaultTagValues

public java.util.Set<java.lang.String> getNonDefaultTagValues()
Description copied from class: Extraction2TaggingReduction
Get all the tag values that were used.

Specified by:
getNonDefaultTagValues in class Extraction2TaggingReduction

getTaggedLabels

public TextLabels getTaggedLabels()
Description copied from class: Extraction2TaggingReduction
Return the TextLabels holding the tags which encode the extraction task.

Specified by:
getTaggedLabels in class Extraction2TaggingReduction

extractFromTags

public void extractFromTags(java.lang.String output,
                            MonotonicTextLabels taggedLabels)
Return a TextLabels in which tagged tokens are used to solve the extraction problem.

Specified by:
extractFromTags in class Extraction2TaggingReduction