Class ADSentenceStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<String, ADSentenceStream.Sentence>
opennlp.tools.formats.ad.ADSentenceStream
- All Implemented Interfaces:
AutoCloseable, ObjectStream<ADSentenceStream.Sentence>
@Internal
public class ADSentenceStream
extends FilterObjectStream<String, ADSentenceStream.Sentence>
Stream filter which merges text lines into sentences, following the Arvores
Deitadas syntax.
Information about the format:
Susana Afonso.
"Árvores deitadas: Descrição do formato e das opções de análise na Floresta Sintáctica".
12 de Fevereiro de 2006.
Note: Do not use this class, internal use only!
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic classParses a sample of AD corpus. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterObjectStream
close, reset
-
Constructor Details
-
ADSentenceStream
-
-
Method Details
-
read
Reads the next sentence.- Returns:
- The next
ADSentenceStream.Sentence, ornullat the end of the input. A sentence cut off before the closing tag is returned with the lines read so far; an opening tag with no lines after it at the end of the input yields no sentence. - Throws:
IOException- Thrown if the line stream cannot be read.
-