edu.cmu.minorthird.text
Class POSTagger
java.lang.Object
edu.cmu.minorthird.text.AbstractAnnotator
edu.cmu.minorthird.text.StringAnnotator
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POSTagger
public POSTagger()
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