new NumberEntityRecognizer(entityName)
Can recognize numbers in a sentence.
Parameters:
Name | Type | Description |
---|---|---|
entityName |
string | The name of produced entities. |
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. |
Returns:
The set of found entities.
- Type
- Array.<Entity>
getName() → {string}
Returns the recognizer entity name. Returned entities value is number.
Returns:
The entity name.
- Type
- string