|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.process.AbstractListProcessor<IN,HasWord,L,F>
edu.stanford.nlp.process.WordToTaggedWordProcessor<IN,L,F>
L - The type of the labelsF - The type of the featurespublic class WordToTaggedWordProcessor<IN extends HasWord,L,F>
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(java.lang.String[] args)
This will print out some text, recognizing tags. |
java.util.List<HasWord> |
process(java.util.List<? extends IN> 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 split| Method Detail |
|---|
public java.util.List<HasWord> process(java.util.List<? extends IN> words)
words - The input Document (should be of HasWords)
public static void main(java.lang.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 | ||||||||