Package opennlp.tools.formats.brat
Class BratNameSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<S,T>
 
opennlp.tools.formats.brat.SegmenterObjectStream<BratDocument,NameSample>
 
opennlp.tools.formats.brat.BratNameSampleStream
- All Implemented Interfaces:
- AutoCloseable,- ObjectStream<NameSample>
Generates Name Sample objects for a Brat Document object.
- 
Constructor SummaryConstructorsConstructorDescriptionBratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples) Creates a newBratNameSampleStream.BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples) Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.
- 
Method SummaryMethods inherited from class opennlp.tools.formats.brat.SegmenterObjectStreamreadMethods inherited from class opennlp.tools.util.FilterObjectStreamclose, reset
- 
Constructor Details- 
BratNameSampleStreampublic BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples) Creates a newBratNameSampleStream.- Parameters:
- sentDetector- a- SentenceDetectorinstance
- tokenizer- a- Tokenizerinstance
- samples- a- BratDocument- ObjectStream
 
- 
BratNameSampleStreampublic BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples) Creates a newBratNameSampleStream.- Parameters:
- sentModel- a- SentenceModelmodel
- tokenModel- a- TokenizerModelmodel
- samples- a- BratDocument- ObjectStream
 
- 
BratNameSampleStreampublic BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.- Parameters:
- sentDetector- a- SentenceDetectorinstance
- tokenizer- a- Tokenizerinstance
- samples- a- BratDocument- ObjectStream
- nameTypes- the name types to use or null if all name types
 
- 
BratNameSampleStreampublic BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.- Parameters:
- sentModel- a- SentenceModelmodel
- tokenModel- a- TokenizerModelmodel
- samples- a- BratDocument- ObjectStream
- nameTypes- the name types to use or null if all name types
 
 
-