NLPResult

NLPResult

Wrapper object for accessing nlpresult

Constructor

new NLPResult()

Source:

Methods

entityMatches(entityopt) → {object}

Source:
Returns matches for the specified entity; may be an empty collection. If no entity is specified, returns the map of all entities.
Parameters:
Name Type Attributes Description
entity string <optional>
name of the entity
Returns:
The entity match result.
Type
object

fullEntityMatches(entityopt) → {object}

Source:
Returns full payload matches for the specified entity; may be an empty collection. If no entity is specified, returns the full payload map of all entities.
Parameters:
Name Type Attributes Description
entity string <optional>
name of the entity
Returns:
The full entity match result.
Type
object

intentMatches() → {Array.<object>}

Source:
Returns intent matches if any. Intent matches are returned in descending order of score,
Returns:
The intent match results, each match with properties score and intent.
Type
Array.<object>

topIntentMatch() → {object}

Source:
Returns top intent match (with highest score), if any.
Returns:
The top intent match (with properties score and intent)
Type
object