NCEntityParser
A pipeline component that converts list of tokens into the list of entities.
Parser instance can produce NCEntity instances with different types. Each NCEntity instance contains NCToken instances list and each NCToken instance can belong to one or more different NCEntity instances. Order of result entities list is not important.
See NCPipeline for documentation on the overall processing pipeline. Note that pipeline must have at least one entity parser.
- See also:
- Source:
- NCEntityParser.scala
Value members
Abstract methods
Parses and converts given list of tokens into the list of entities.
Parses and converts given list of tokens into the list of entities.
- Value parameters:
- cfg
Configuration of the model this component is associated with.
- req
Input request descriptor.
- toks
List of tokens to convert.
- Returns:
List of parsed entities, potentially empty but never
null
.- Throws:
- NCException
Thrown in case of any errors.
- Source:
- NCEntityParser.scala
Inherited methods
Called when the component starts. Default implementation is no-op.
Called when the component starts. Default implementation is no-op.
- Value parameters:
- cfg
Configuration of the model this component is associated with.
- Inherited from:
- NCLifecycle
- Source:
- NCLifecycle.scala
Called when the component stops. Default implementation is no-op.
Called when the component stops. Default implementation is no-op.
- Value parameters:
- cfg
Configuration of the model this component is associated with.
- Inherited from:
- NCLifecycle
- Source:
- NCLifecycle.scala