edu.cmu.minorthird.text.learn
Class Extraction2TaggingReduction

java.lang.Object
  extended by edu.cmu.minorthird.text.learn.Extraction2TaggingReduction
Direct Known Subclasses:
BeginContinueEndUniqueReduction, BeginContinueOutsideReduction, InsideOutsideReduction

public abstract class Extraction2TaggingReduction
extends java.lang.Object

A scheme for reducing an extraction task to a tagging task.

Author:
William Cohen

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

Extraction2TaggingReduction

public Extraction2TaggingReduction()
Method Detail

reduceExtraction2Tagging

public abstract void reduceExtraction2Tagging(AnnotationExample example)
Convert the information in a single annotation example to token 'tags' (token properties, assigned to every token).


getTokenProp

public abstract java.lang.String getTokenProp()
Return the token property used for the tags which encode the extraction task.


getNonDefaultTagValues

public abstract java.util.Set<java.lang.String> getNonDefaultTagValues()
Get all the tag values that were used.


getTaggedLabels

public abstract TextLabels getTaggedLabels()
Return the TextLabels holding the tags which encode the extraction task.


extractFromTags

public abstract void extractFromTags(java.lang.String output,
                                     MonotonicTextLabels labels)
Alter a TextLabels object with tagged tokens by using them to solve the extraction problem.


assignDefaultLabels

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. This is intended to be used before labeling the positive tokens appropriately.