edu.northwestern.at.morphadorner.examples

## Class PosTagString

- java.lang.Object
- - edu.northwestern.at.morphadorner.examples.PosTagString

-     public class PosTagString
      extends java.lang.Object

  PosTagString: Adorn a string with parts of speech.

  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 Summary

    Constructors
    Constructor and Description
    `PosTagString()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `adornText(java.lang.String[] args)` Adorn text specified as a program parameter.
    `static void` | `main(java.lang.String[] args)` Main program.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PosTagString

          public PosTagString()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)

      Main program.
      Parameters:
        `args` - Program parameters.

    - #### adornText

          public static void adornText(java.lang.String[] args)
                                throws java.lang.Exception

      Adorn text specified as a program parameter.
      Parameters:
        `args` - The program parameters.

        args[ 0 ] contains the text to adorn. The text may contain one or more sentences with punctuation.

      Throws:
        `java.lang.Exception`