public class SemanticTagResource extends org.apache.uima.fit.component.Resource_ImplBase implements SemanticTagProvider
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_RESOURCE_PATH |
Constructor and Description |
---|
SemanticTagResource() |
Modifier and Type | Method and Description |
---|---|
String |
getSemanticTag(List<Token> tokens)
Get a semantic tag for a list of tokens (e.g.
|
String |
getSemanticTag(Token token)
Get a semantic tag for a token.
|
boolean |
initialize(org.apache.uima.resource.ResourceSpecifier aSpecifier,
Map aAdditionalParams) |
afterResourcesInitialized, getLogger, getResourceName
public static final String PARAM_RESOURCE_PATH
public boolean initialize(org.apache.uima.resource.ResourceSpecifier aSpecifier, Map aAdditionalParams) throws org.apache.uima.resource.ResourceInitializationException
initialize
in interface org.apache.uima.resource.Resource
initialize
in class org.apache.uima.fit.component.Resource_ImplBase
org.apache.uima.resource.ResourceInitializationException
public String getSemanticTag(Token token) throws org.apache.uima.resource.ResourceAccessException
SemanticTagProvider
getSemanticTag
in interface SemanticTagProvider
token
- token to tagorg.apache.uima.resource.ResourceAccessException
- if the semantic resource cannot be accessed.public String getSemanticTag(List<Token> tokens) throws org.apache.uima.resource.ResourceAccessException
SemanticTagProvider
getSemanticTag
in interface SemanticTagProvider
tokens
- list of tokens to tagorg.apache.uima.resource.ResourceAccessException
- if the semantic resource cannot be accessed.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.