NCIntentMatch

Descriptor of the matched intent.

Source:
NCIntentMatch.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

Gets a subset of entities representing matched intent. This subset is grouped by the matched terms where a null sub-list defines an optional term. Order and index of sub-lists corresponds to the order and index of terms in the matching intent. Number of sub-lists will always be the same as the number of terms in the matched intent.

Gets a subset of entities representing matched intent. This subset is grouped by the matched terms where a null sub-list defines an optional term. Order and index of sub-lists corresponds to the order and index of terms in the matching intent. Number of sub-lists will always be the same as the number of terms in the matched intent.

Consider using NCIntentTerm annotation instead for simpler access to the intent entities.

Returns:

List of lists of entities representing matched intent.

See also:
Source:
NCIntentMatch.scala

Gets ID of the matched intent.

Gets ID of the matched intent.

Source:
NCIntentMatch.scala

Gets entities for given term. This is a companion method for getIntentEntities method.

Gets entities for given term. This is a companion method for getIntentEntities method.

Consider using NCIntentTerm annotation instead for simpler access to the intent entities.

Value parameters:
idx

Index of the term (starting from 0).

Returns:

List of entities, potentially null, for given term.

Source:
NCIntentMatch.scala

Gets entities for given term. This is a companion method for getIntentEntities.

Gets entities for given term. This is a companion method for getIntentEntities.

Consider using NCIntentTerm annotation instead for simpler access to the intent entities.

Value parameters:
termId

ID of the term for which to get entities.

Returns:

List of entities, potentially null, for given term.

Source:
NCIntentMatch.scala

Gets parsing variant that produced the matching for this intent. Returned variant is one of the variants provided by NCContext.getVariants methods. Note that entities returned by this method are a superset of the entities returned by getIntentEntities method, i.e. not all entities from this variant may have been used in matching of the winning intent.

Gets parsing variant that produced the matching for this intent. Returned variant is one of the variants provided by NCContext.getVariants methods. Note that entities returned by this method are a superset of the entities returned by getIntentEntities method, i.e. not all entities from this variant may have been used in matching of the winning intent.

Returns:

Parsing variant that produced the matching for this intent.

Source:
NCIntentMatch.scala