edu.stanford.nlp.trees
Class OnePerLineSentenceNormalizer
java.lang.Object
|
+--edu.stanford.nlp.trees.SentenceNormalizer
|
+--edu.stanford.nlp.trees.OnePerLineSentenceNormalizer
- public class OnePerLineSentenceNormalizer
- extends SentenceNormalizer
A class for sentence normalization. The
OnePerLineSentenceNormalizer
deals with line-based sentences
and does minimal other normalization.
Method Summary |
boolean |
eolIsSentenceEnd()
This function can be checked by a SentenceReader so as
to know whether an end-of-line is always to be treated as an
end-of-sentence. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OnePerLineSentenceNormalizer
public OnePerLineSentenceNormalizer()
eolIsSentenceEnd
public boolean eolIsSentenceEnd()
- This function can be checked by a
SentenceReader
so as
to know whether an end-of-line is always to be treated as an
end-of-sentence. If this is true, then the
endSentenceToken()
function is not used.
- Overrides:
eolIsSentenceEnd
in class SentenceNormalizer
- Returns:
- true if an eol is always a sentence end
Stanford NLP Group