edu.cmu.minorthird.text
Class POSTagger

java.lang.Object
  extended by edu.cmu.minorthird.text.AbstractAnnotator
      extended by edu.cmu.minorthird.text.StringAnnotator
          extended by edu.cmu.minorthird.text.POSTagger
All Implemented Interfaces:
Annotator

public class POSTagger
extends StringAnnotator

Adds part of speech tags to a TextLabels.

Author:
Richard Wang rcwang@cmu.edu

Field Summary
 
Fields inherited from class edu.cmu.minorthird.text.StringAnnotator
providedAnnotation
 
Constructor Summary
POSTagger()
           
 
Method Summary
protected  CharAnnotation[] annotateString(java.lang.String in)
          Returns char based stand-off annotations for pos in the given string This will not work with html/xml in the string!
 java.lang.String explainAnnotation(TextLabels labels, Span documentSpan)
          The implementation for this method should explain how annotation would be added to some part of the text base.
static void main(java.lang.String[] args)
           
static java.lang.String POSTag(java.lang.String in)
           
static java.lang.String substFirst(java.lang.String in, java.lang.String find, java.lang.String newStr, boolean case_sensitive)
           
 
Methods inherited from class edu.cmu.minorthird.text.StringAnnotator
closedTypes, doAnnotate
 
Methods inherited from class edu.cmu.minorthird.text.AbstractAnnotator
annotate, annotatedCopy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSTagger

public POSTagger()
Method Detail

annotateString

protected CharAnnotation[] annotateString(java.lang.String in)
Returns char based stand-off annotations for pos in the given string This will not work with html/xml in the string!

Specified by:
annotateString in class StringAnnotator
Parameters:
in - String to tag
Returns:
tagged String

substFirst

public static java.lang.String substFirst(java.lang.String in,
                                          java.lang.String find,
                                          java.lang.String newStr,
                                          boolean case_sensitive)

POSTag

public static java.lang.String POSTag(java.lang.String in)

explainAnnotation

public java.lang.String explainAnnotation(TextLabels labels,
                                          Span documentSpan)
Description copied from class: AbstractAnnotator
The implementation for this method should explain how annotation would be added to some part of the text base.

Specified by:
explainAnnotation in interface Annotator
Specified by:
explainAnnotation in class AbstractAnnotator

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception