public class BratNameSampleStream extends SegmenterObjectStream<BratDocument,NameSample>
Constructor and Description |
---|
BratNameSampleStream(SentenceDetector sentDetector,
Tokenizer tokenizer,
ObjectStream<BratDocument> samples)
Creates a new
BratNameSampleStream . |
BratNameSampleStream(SentenceDetector sentDetector,
Tokenizer tokenizer,
ObjectStream<BratDocument> samples,
Set<String> nameTypes)
Creates a new
BratNameSampleStream . |
BratNameSampleStream(SentenceModel sentModel,
TokenizerModel tokenModel,
ObjectStream<BratDocument> samples)
Creates a new
BratNameSampleStream . |
BratNameSampleStream(SentenceModel sentModel,
TokenizerModel tokenModel,
ObjectStream<BratDocument> samples,
Set<String> nameTypes)
Creates a new
BratNameSampleStream . |
public BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples)
BratNameSampleStream
.sentDetector
- a SentenceDetector
instancetokenizer
- a Tokenizer
instancesamples
- a BratDocument
ObjectStream
public BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples)
BratNameSampleStream
.sentModel
- a SentenceModel
modeltokenModel
- a TokenizerModel
modelsamples
- a BratDocument
ObjectStream
public BratNameSampleStream(SentenceDetector sentDetector, Tokenizer tokenizer, ObjectStream<BratDocument> samples, Set<String> nameTypes)
BratNameSampleStream
.sentDetector
- a SentenceDetector
instancetokenizer
- a Tokenizer
instancesamples
- a BratDocument
ObjectStream
nameTypes
- the name types to use or null if all name typespublic BratNameSampleStream(SentenceModel sentModel, TokenizerModel tokenModel, ObjectStream<BratDocument> samples, Set<String> nameTypes)
BratNameSampleStream
.sentModel
- a SentenceModel
modeltokenModel
- a TokenizerModel
modelsamples
- a BratDocument
ObjectStream
nameTypes
- the name types to use or null if all name typesCopyright © 2018 The Apache Software Foundation. All rights reserved.