L
- The type of the labelsF
- The type of the featurespublic class WordToTaggedWordProcessor<IN extends HasWord,L,F> extends AbstractListProcessor<IN,HasWord,L,F>
Modifier and Type | Field and Description |
---|---|
protected char |
splitChar
The char that we will split on.
|
Constructor and Description |
---|
WordToTaggedWordProcessor()
Create a
WordToTaggedWordProcessor using the default
forward slash character to split on. |
WordToTaggedWordProcessor(char splitChar)
Flexibly set the tag splitting chars.
|
Modifier and Type | Method and Description |
---|---|
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.
|
processDocument, processLists
public WordToTaggedWordProcessor()
WordToTaggedWordProcessor
using the default
forward slash character to split on.public WordToTaggedWordProcessor(char splitChar)
splitChar
- The character at which to splitpublic 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