|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.nlp.process.AbstractListProcessor edu.stanford.nlp.process.WordToTaggedWordProcessor
public class 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. |
List |
process(List words)
Returns a new Document where each Word with a tag has been converted to a TaggedWord. |
Methods inherited from class edu.stanford.nlp.process.AbstractListProcessor |
---|
processDocument, processLists |
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 List process(List words)
words
- The input Document (should be of HasWords)
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 |