|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.process.WordToTaggedWordProcessor
Transforms a Document of Words into a document all or partly of TaggedWords by breaking words on a tag divider character.
Field Summary | |
protected char |
splitChar
The char that we will split on. |
Constructor Summary | |
WordToTaggedWordProcessor()
Create a WordToTaggedWordProcessor using the default
forward slash character to split on. |
|
WordToTaggedWordProcessor(char splitChar)
Flexibly set the tag splitting chars. |
Method Summary | |
static void |
main(String[] args)
This will print out some text, recognizing tags. |
Document |
process(Document words)
Returns a new Document where each Word with a tag has been converted to a TaggedWord. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected char splitChar
Constructor Detail |
public WordToTaggedWordProcessor()
WordToTaggedWordProcessor
using the default
forward slash character to split on.
public WordToTaggedWordProcessor(char splitChar)
splitChar
- The character at which to splitMethod Detail |
public Document process(Document words)
process
in interface Processor
words
- The input Document (should be of HasWords)
DocumentProcessor
public static void main(String[] args)
java edu.stanford.nlp.process.WordToTaggedWordProcessor fileOrUrl
args
- Command line argument: a file or URL
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |