Class SentenceAttributeExtractor
java.lang.Object
org.apache.lucene.analysis.opennlp.SentenceAttributeExtractor
Iterate through sentence tokens and cache their attributes. Could consider moving this to a more
central location to be used by other sentence-aware components.
May want to consider making this its own Filter so that extracted sentence token attributes can be shared by downstream sentence-aware filters.
-
Constructor Summary
ConstructorsConstructorDescriptionSentenceAttributeExtractor
(TokenStream input, SentenceAttribute sentenceAtt) -
Method Summary
-
Constructor Details
-
SentenceAttributeExtractor
-
-
Method Details
-
extractSentenceAttributes
- Throws:
IOException
-
getSentenceAttributes
-
allSentencesProcessed
public boolean allSentencesProcessed() -
reset
public void reset()
-