edu.stanford.nlp.process
Class SentenceToWordProcessor
java.lang.Object
|
+--edu.stanford.nlp.process.SentenceToWordProcessor
- All Implemented Interfaces:
- Processor
- public class SentenceToWordProcessor
- extends Object
- implements Processor
Transforms a Document of Sentences to a Document of Words
by flattening out the Sentences. All the words in each
Sentence are dumped out into a new Document with the same
meta-data as the original Document. Opposite of
WordToSentenceProcessor
.
- Author:
- Joseph Smarr (jsmarr@stanford.edu)
Method Summary |
Document |
process(Document sentences)
Transforms the given Document of Sentences into a
Document of Words by flattening out the Sentences. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentenceToWordProcessor
public SentenceToWordProcessor()
process
public Document process(Document sentences)
- Transforms the given Document of Sentences into a
Document of Words by flattening out the Sentences.
- Specified by:
process
in interface Processor
- See Also:
DocumentProcessor
Stanford NLP Group