共用方式為


CustomEntity Class

Definition

An object that contains information about the matches that were found, and related metadata.

public class CustomEntity
type CustomEntity = class
Public Class CustomEntity
Inheritance
CustomEntity

Constructors

CustomEntity(String)

Initializes a new instance of CustomEntity.

Properties

AccentSensitive

Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to accent.

Aliases

An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name.

CaseSensitive

Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to character casing. Sample case insensitive matches of "Microsoft" could be: microsoft, microSoft, MICROSOFT.

DefaultAccentSensitive

Changes the default accent sensitivity value for this entity. It be used to change the default value of all aliases accentSensitive values.

DefaultCaseSensitive

Changes the default case sensitivity value for this entity. It be used to change the default value of all aliases caseSensitive values.

DefaultFuzzyEditDistance

Changes the default fuzzy edit distance value for this entity. It can be used to change the default value of all aliases fuzzyEditDistance values.

Description

This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.

FuzzyEditDistance

Defaults to 0. Maximum value of 5. Denotes the acceptable number of divergent characters that would still constitute a match with the entity name. The smallest possible fuzziness for any given match is returned. For instance, if the edit distance is set to 3, "Windows10" would still match "Windows", "Windows10" and "Windows 7". When case sensitivity is set to false, case differences do NOT count towards fuzziness tolerance, but otherwise do.

Id

This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.

Name

The top-level entity descriptor. Matches in the skill output will be grouped by this name, and it should represent the "normalized" form of the text being found.

Subtype

This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.

Type

This field can be used as a passthrough for custom metadata about the matched text(s). The value of this field will appear with every match of its entity in the skill output.

Applies to