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) Initializes a newBratNameSampleStreamwith the specified parameters based on a straem ofdocuments.BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples) Initializes a newBratNameSampleStreamwith the specified (model) parameters.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) Initializes a newBratNameSampleStreamwith the specified parameters based on a straem ofdocuments.- Parameters:
- sentDetector- A valid- SentenceDetectorinstance.
- tokenizer- A valid- Tokenizerinstance.
- samples- The- BratDocument- ObjectStreamto process.
 
- 
BratNameSampleStreampublic BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples) Initializes a newBratNameSampleStreamwith the specified (model) parameters.- Parameters:
- sentModel- A valid- sentence detection model.
- tokenModel- A valid- tokenizer model.
- samples- The- BratDocument- ObjectStreamto process.
 
- 
BratNameSampleStreampublic BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes) Creates a newBratNameSampleStream.- Parameters:
- sentDetector- A valid- SentenceDetectorinstance.
- tokenizer- A valid- Tokenizerinstance.
- samples- The- BratDocument- ObjectStreamto process.
- nameTypes- the name types to use or- nullif 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- nullif all name types
 
 
-