public interface Pipeline
| Modifier and Type | Interface and Description |
|---|---|
static class |
Pipeline.Property |
static class |
Pipeline.Type |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_CACHING |
static Charset |
DEFAULT_ENCODING |
static List<NamedEntity.Category> |
DEFAULT_ENTITIES |
static List<NlpStage> |
DEFAULT_TARGET_STAGES |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getEncoding() |
Optional<String> |
getPosTagSet(Language language) |
List<NlpStage> |
getStages() |
List<NamedEntity.Category> |
getTargetEntities() |
Pipeline.Type |
getType() |
boolean |
initialize(Language language) |
boolean |
isCaching() |
List<NamedEntity> |
process(Document doc) |
static Set<Pipeline.Type> |
set(Pipeline.Type... types) |
boolean |
supports(NlpStage stage,
Language language)
Is stage supported for language?
|
void |
terminate(Language language) |
static final Charset DEFAULT_ENCODING
static final List<NamedEntity.Category> DEFAULT_ENTITIES
static final boolean DEFAULT_CACHING
static Set<Pipeline.Type> set(Pipeline.Type... types)
Pipeline.Type getType()
boolean initialize(Language language) throws InterruptedException
InterruptedExceptionList<NamedEntity> process(Document doc) throws InterruptedException
InterruptedExceptionvoid terminate(Language language) throws InterruptedException
InterruptedExceptionboolean supports(NlpStage stage, Language language)
stage - the stage to test for supportlanguage - the language on which stage is testedList<NamedEntity.Category> getTargetEntities()
boolean isCaching()
Charset getEncoding()
Copyright © 2020–2021 ICIJ. All rights reserved.