new TaggingConfiguration()
Configuration of a Tagger
Methods
(static) from(configurationElement) → {$k.TaggingConfiguration}
Returns the tagging confguration defined by the element
Parameters:
Name | Type | Description |
---|---|---|
configurationElement | $k.SemanticElement | The tagging configuration element (semantic element, identifier oder element id) |
- Since
- 5.2.0
Returns:
- Type:
- $k.TaggingConfiguration
Example
// Build a tagger from an existing configuration
var configElement = $k.Registry.elementAtValue("tagging.name", "opennlp tagger config");
var tagger = $k.TaggingConfiguration.from(configElement);
tag(taggingContext)
Tags the document using the parameters defined by the context. The context is stateful and must be created for each call of this function.
Parameters:
Name | Type | Description |
---|---|---|
taggingContext | $k.TaggingContext |
- Since
- 5.2.0
tagTypeConfigurations()
Returns the tag type configurations defined for the element
- Since
- 5.2.0