Class: TaggingConfiguration

$k. TaggingConfiguration

new $k.TaggingConfiguration()

Configuration of a Tagger

Methods

static$k.TaggingConfiguration.from(configurationElement) : $k.TaggingConfiguration

Returns the tagging confguration defined by the element

Name Type Description
configurationElement $k.SemanticElement

The tagging configuration element (semantic element, identifier oder element id)

Since:
  • 5.2.0
Returns:
Type Description
$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.

Name Type Description
taggingContext $k.TaggingContext
Since:
  • 5.2.0

tagTypeConfigurations()

Returns the tag type configurations defined for the element

Since:
  • 5.2.0