Class: FreeTextEntityRecognizer

Bravey.FreeTextEntityRecognizer

new FreeTextEntityRecognizer(entityName, priorityopt)

Can recognize free text in a sentence. Explicit with "free text". It works with Bravey.nlp.Sequential only. BETA!
Parameters:
Name Type Attributes Default Description
entityName string The name of produced entities.
priority number <optional>
0 Priority given to extracted entities.
Source:

Methods

addConjunction(string)

Adds a sentence conjunction. (i.e. "which title is...")
Parameters:
Name Type Description
string string The conjunction to be added.
Source:

addPrefix(string)

Adds a sentence prefix. (i.e. "with title ...")
Parameters:
Name Type Description
string string The prefix to be added.
Source:

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

Returns all found entities in a sentence. Returned entities value is string.
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.
Source:
Returns:
The entity name.
Type
string