Pipeline.Property, Pipeline.Type| Modifier and Type | Field and Description |
|---|---|
protected boolean |
caching |
protected Charset |
encoding |
protected org.slf4j.Logger |
LOGGER |
static String |
NLP_STAGES_PROP |
protected Map<NlpStage,List<NlpStage>> |
stageDependencies |
protected List<NlpStage> |
stages |
protected List<NamedEntity.Category> |
targetEntities |
protected List<NlpStage> |
targetStages |
DEFAULT_CACHING, DEFAULT_ENCODING, DEFAULT_ENTITIES, DEFAULT_TARGET_STAGES| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPipeline(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
static AbstractPipeline |
create(String pipelineName,
PropertiesProvider propertiesProvider) |
Charset |
getEncoding() |
List<NlpStage> |
getStages() |
List<NamedEntity.Category> |
getTargetEntities() |
Pipeline.Type |
getType() |
boolean |
initialize(Language language)
Prepare pipeline run
Check language support for implied stages.
|
boolean |
isCaching() |
abstract Annotations |
process(String content,
String docId,
Language language)
Apply all specified stages/annotators on input
|
List<NamedEntity> |
processHeaders(Document doc) |
abstract Map<Language,Set<NlpStage>> |
supportedStages() |
boolean |
supports(NlpStage stage,
Language language)
Is stage supported for language?
|
void |
terminate(Language language)
Post-processing operations
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosTagSet, setpublic static final String NLP_STAGES_PROP
protected final org.slf4j.Logger LOGGER
protected final Charset encoding
protected final List<NamedEntity.Category> targetEntities
protected final boolean caching
protected AbstractPipeline(Properties properties)
public Pipeline.Type getType()
public List<NamedEntity.Category> getTargetEntities()
getTargetEntities in interface Pipelinepublic boolean isCaching()
public Charset getEncoding()
getEncoding in interface Pipelinepublic static AbstractPipeline create(String pipelineName, PropertiesProvider propertiesProvider) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException
public boolean initialize(Language language) throws InterruptedException
initialize in interface PipelineInterruptedExceptionpublic abstract Annotations process(String content, String docId, Language language) throws InterruptedException
process in interface Pipelinecontent - is the source String to processdocId - the input hash codeInterruptedExceptionpublic List<NamedEntity> processHeaders(Document doc)
public void terminate(Language language) throws InterruptedException
terminate in interface PipelineInterruptedExceptionpublic abstract Map<Language,Set<NlpStage>> supportedStages()
Copyright © 2020 ICIJ. All rights reserved.