$k. TaggingConfiguration

new TaggingConfiguration()

Configuration of a Tagger

Methods

(static) from(configurationElement) → {$k.TaggingConfiguration}

Returns the tagging confguration defined by the element

Parameters:
NameTypeDescription
configurationElement$k.SemanticElement

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

Since
  • 5.2.0
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:
NameTypeDescription
taggingContext$k.TaggingContext
Since
  • 5.2.0

tagTypeConfigurations()

Returns the tag type configurations defined for the element

Since
  • 5.2.0