Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INaturalLanguageCriteria

Add an operator to compare array of NLU results with one given. Comparisons requiring a score will use the default threshold if none given.

  • in id and/or name (or score if only score given) exists in the result
  • is id and/or name (or score if only score given) are the only result
  • max id and/or name match result with highest score
  • min id and/or name match result with lowest score
  • eq any result has score exactly equal to comparison
  • gte any result has score greater than or equal to comparison
  • gt any result has score greater than comparison
  • lt any result has score less than comparison
  • lte any result has score less than or equal to comparison

Hierarchy

Indexable

[key: string]: any

Add an operator to compare array of NLU results with one given. Comparisons requiring a score will use the default threshold if none given.

  • in id and/or name (or score if only score given) exists in the result
  • is id and/or name (or score if only score given) are the only result
  • max id and/or name match result with highest score
  • min id and/or name match result with lowest score
  • eq any result has score exactly equal to comparison
  • gte any result has score greater than or equal to comparison
  • gt any result has score greater than comparison
  • lt any result has score less than comparison
  • lte any result has score less than or equal to comparison

Index

Properties

Properties

Optional id

id: undefined | string

Optional name

name: undefined | string

Optional operator

operator: "in" | "is" | "match" | "max" | "min" | "eq" | "gte" | "gt" | "lt" | "lte"

Optional score

score: undefined | number

Generated using TypeDoc