NCQuotesTokenEnricher

class NCQuotesTokenEnricher extends NCTokenEnricher with LazyLogging

Quotes token enricher.

This enricher adds quoted boolean metadata property to the token instance if word it represents is in quotes. The value true of the metadata property indicates that this word is in quotes, false value indicates otherwise.

Supported quotes are: «, », ", ', `.

NOTE: invalid enclosed quotes are ignored.

Source:
NCQuotesTokenEnricher.scala
trait LazyLogging
class Object
trait Matchable
class Any

Value members

Concrete methods

override def enrich(req: NCRequest, cfg: NCModelConfig, toks: List[NCToken]): Unit

Enriches, or otherwise modifies, previously parsed tokens.

Enriches, or otherwise modifies, previously parsed tokens.

Definition Classes
Source:
NCQuotesTokenEnricher.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

Inherited fields

lazy protected val logger: Logger
Inherited from:
LazyLogging
Source:
Logging.scala