Class: NumberEntityRecognizer

Bravey.NumberEntityRecognizer

new NumberEntityRecognizer(entityName)

Can recognize numbers in a sentence.
Parameters:
Name Type Description
entityName string The name of produced entities.
Source:

Methods

getEntities(string, outopt) → {Array.<Entity>}

Returns all found entities in a sentence.
Parameters:
Name Type Attributes Default Description
string string The sentence to be checked.
out Array.<Entity> <optional>
[] The array in which the found entities will be added.
Source:
Returns:
The set of found entities.
Type
Array.<Entity>

getName() → {string}

Returns the recognizer entity name. Returned entities value is number.
Source:
Returns:
The entity name.
Type
string