public class PosTagString
extends java.lang.Object
Usage:
java -Xmx256m edu.northwestern.at.morphadorner.example.PosTagString "Text to adorn."
where "Text to adorn." specifies one or more sentences of text to adorn with part of speech tags. The default tokenizer, sentence splitter, lexicons, and part of speech tagger are used.
Example:
java -Xmx256m edu.northwestern.at.morphadorner.example.PosTagString "Mary had a little lamb. Its fleece was white as snow."
Constructor and Description |
---|
PosTagString() |
public static void main(java.lang.String[] args)
args
- Program parameters.public static void adornText(java.lang.String[] args) throws java.lang.Exception
args
- The program parameters.
args[ 0 ] contains the text to adorn. The text may contain one or more sentences with punctuation.
java.lang.Exception