NCVariant

trait NCVariant

A parsing variant is a list of entities defining one possible parsing of the input query. Note that a given user input almost always has one or more possible parsing variants. Furthermore, depending on the model configuration a user input can produce hundreds and even thousands of parsing variants.

Pipeline provides user-defined variant filter component NCVariantFilter to allow a programmatic filtration of the variants. Note that even a few dozens of variants can significantly slow down the overall NLPCraft processing.

See also:

NCModel.onVariant()

Source:
NCVariant.scala
class Object
trait Matchable
class Any

Value members

Abstract methods

Gets the list of entities for this variant.

Gets the list of entities for this variant.

Returns:

List of entities for this variant. Can be empty but never null.

Source:
NCVariant.scala