Class: NamedEntity

NamedEntity(settings)

Class for a Named Entity that can be Enumerated or Regular Expression.

Constructor

new NamedEntity(settings)

Constructor of the class.
Parameters:
Name Type Description
settings Object Settings for the instance.
Source:

Methods

extract()

Given an utterance extract Named entity occurances from this utterance.
Source:

getLocale(locale, create) → {Object}

Get or create a locale.
Parameters:
Name Type Default Description
locale string Locale of the language.
create boolean true Flag indicating if should create if not exists.
Source:
Returns:
Locale object.
Type
Object

getLocaleRules(locale) → {Object}

Given a locale, return the rules for this locale with locale fallback.
Parameters:
Name Type Description
locale string Locale to retrieve the rules.
Source:
Returns:
Rules for this locale.
Type
Object