| Class | StanfordParser::DocumentPreprocessor |
| In: |
lib/stanfordparser.rb
|
| Parent: | Rjb::JavaObjectWrapper |
Tokenizes documents into words and sentences.
This is a wrapper for the edu.stanford.nlp.process.DocumentPreprocessor object.
# File lib/stanfordparser.rb, line 238 def initialize(suppressEscaping = false) super("edu.stanford.nlp.process.DocumentPreprocessor", suppressEscaping) end
Returns a list of sentences in a string.
# File lib/stanfordparser.rb, line 243 def getSentencesFromString(s) s = Rjb::JavaObjectWrapper.new("java.io.StringReader", s) _invoke(:getSentencesFromText, "Ljava.io.Reader;", s.java_object) end