public static class NerPipeline.NerPipelineBuilder extends Object
NerPipeline.| Constructor and Description |
|---|
NerPipelineBuilder() |
| Modifier and Type | Method and Description |
|---|---|
NerPipeline |
build(com.neovisionaries.i18n.LanguageCode languageCode)
Builds the pipeline.
|
NerPipeline.NerPipelineBuilder |
withDuplicateEntityStrategy(DuplicateEntityStrategy duplicateEntityStrategy)
Sets the duplicate entity strategy for the pipeline.
|
NerPipeline.NerPipelineBuilder |
withEntityOrder(EntityOrder entityOrder)
Sets the return order for extracted entities.
|
NerPipeline.NerPipelineBuilder |
withEntityRecognizers(List<EntityRecognizer> entityRecognizers)
Sets the entity recognizers for the pipeline.
|
NerPipeline.NerPipelineBuilder |
withEntitySanitizers(List<EntitySanitizer> entitySanitizers)
Sets the entity sanitizers for the pipeline.
|
NerPipeline.NerPipelineBuilder |
withEntityTypes(Set<String> entityTypes)
Sets the entity types to extract.
|
NerPipeline.NerPipelineBuilder |
withIdylNLPModelZoo(ai.idylnlp.zoo.IdylNLPModelZoo zoo)
Sets the model zoo client.
|
NerPipeline.NerPipelineBuilder |
withSentenceDetector(SentenceDetector sentenceDetector)
Sets the
SentenceDetector for the pipeline. |
NerPipeline.NerPipelineBuilder |
withStatsReporter(StatsReporter statsReporter)
Sets the
StatsReporter. |
NerPipeline.NerPipelineBuilder |
withTokenizer(Tokenizer tokenizer)
Sets the
Tokenizer for the pipeline. |
public NerPipeline.NerPipelineBuilder withSentenceDetector(SentenceDetector sentenceDetector)
SentenceDetector for the pipeline.sentenceDetector - The SentenceDetector for the pipeline.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withTokenizer(Tokenizer tokenizer)
Tokenizer for the pipeline.public NerPipeline.NerPipelineBuilder withEntityRecognizers(List<EntityRecognizer> entityRecognizers)
entityRecognizers - The entity recognizers.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withEntitySanitizers(List<EntitySanitizer> entitySanitizers)
entitySanitizers - The entity sanitzers.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withStatsReporter(StatsReporter statsReporter)
StatsReporter.statsReporter - The StatsReporter.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withDuplicateEntityStrategy(DuplicateEntityStrategy duplicateEntityStrategy)
public NerPipeline.NerPipelineBuilder withEntityOrder(EntityOrder entityOrder)
entityOrder - The return EntityOrder for extracted entities.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withIdylNLPModelZoo(ai.idylnlp.zoo.IdylNLPModelZoo zoo)
zoo - A IdylNLPModelZoo.pipeline so calls can be chained.public NerPipeline.NerPipelineBuilder withEntityTypes(Set<String> entityTypes)
entityTypes - The entity types to extract.public NerPipeline build(com.neovisionaries.i18n.LanguageCode languageCode)
pipeline.Copyright © 2018. All rights reserved.