Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CustomEnityLookupSkill to 2020-06-30 and 2020-06-30-Preview #11113

Merged
merged 16 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6943,6 +6943,106 @@
},
"description": "Base type for skills."
},
"CustomEntity": {
"properties": {
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
"name": {
"type": "string",
"description": "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."
},
"description": {
"type": "string",
"x-nullable": true,
"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."
},
"type": {
"type": "string",
"x-nullable": true,
"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."
},
"subtype": {
"type": "string",
"x-nullable": true,
"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."
},
"id": {
"type": "string",
"x-nullable": true,
"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."
},
"caseSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "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."
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
},
"accentSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "Defaults to false. Boolean value denoting whether comparisons with the entity name should be sensitive to accent."
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
},
"fuzzyEditDistance": {
"type": "integer",
"format": "int32",
"x-nullable": true,
"description": "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."
},
"defaultCaseSensitive": {
"type": "boolean",
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
"x-nullable": true,
"description": "Changes the default case sensitivity value for this entity. It be used to change the default value of all aliases caseSensitive values."
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
},
"defaultAccentSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "Changes the default accent sensitivity value for this entity. It be used to change the default value of all aliases accentSensitive values."
},
"defaultFuzzyEditDistance": {
"type": "integer",
"format": "int32",
"x-nullable": true,
"description": "Changes the default fuzzy edit distance value for this entity. It can be used to change the default value of all aliases fuzzyEditDistance values."
},
"aliases": {
"type": "array",
"items": {
"$ref": "#/definitions/CustomEntityAlias"
},
"x-nullable": true,
"description": "An array of complex objects that can be used to specify alternative spellings or synonyms to the root entity name."
shuyangmsft marked this conversation as resolved.
Show resolved Hide resolved
}
},
"required": [
"name"
],
"description": "An object that contains information about the matches that were found, and related metadata."
},
"CustomEntityAlias": {
"properties": {
"text": {
"type": "string",
"description": "The text of the alias."
},
"caseSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "Determine if the alias is case sensitive."
},
"accentSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "Determine if the alias is accent sensitive."
},
"fuzzyEditDistance": {
"type": "integer",
"format": "int32",
"x-nullable": true,
"description": "Determine the fuzzy edit distance of the alias."
}
},
"required": [
"text"
],
"description": "A complex object that can be used to specify alternative spellings or synonyms to the root entity name."
},
"InputFieldMappingEntry": {
"properties": {
"name": {
Expand Down Expand Up @@ -7215,6 +7315,54 @@
},
"description": "A skill to split a string into chunks of text."
},
"CustomEntityLookupSkill": {
"x-ms-discriminator-value": "#Microsoft.Skills.Text.CustomEntityLookupSkill",
"allOf": [
{
"$ref": "#/definitions/SearchIndexerSkill"
}
],
"properties": {
"defaultLanguageCode": {
"$ref": "#/definitions/CustomEntityLookupSkillLanguage",
"x-nullable": true,
"description": "A value indicating which language code to use. Default is en."
},
"entitiesDefinitionUri": {
"type": "string",
"x-nullable": true,
"description": "Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS."
},
"inlineEntitiesDefinition": {
"type": "array",
"items": {
"$ref": "#/definitions/CustomEntity"
},
"x-nullable": true,
"description": "The inline CustomEntity definition."
},
"globalDefaultCaseSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value."
},
"globalDefaultAccentSensitive": {
"type": "boolean",
"x-nullable": true,
"description": "A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value."
},
"globalDefaultFuzzyEditDistance": {
"type": "integer",
"format": "int32",
"x-nullable": true,
"description": "A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value."
}
},
"externalDocs": {
"url": "https://docs.microsoft.com/en-us/azure/search/cognitive-search-skill-custom-entity-lookup"
},
"description": "A skill looks for text from a custom, user-defined list of words and phrases."
},
"TextTranslationSkill": {
"x-ms-discriminator-value": "#Microsoft.Skills.Text.TranslationSkill",
"allOf": [
Expand Down Expand Up @@ -7849,6 +7997,63 @@
},
"description": "The language codes supported for input text by SplitSkill."
},
"CustomEntityLookupSkillLanguage": {
"type": "string",
"enum": [
"da",
"de",
"en",
"es",
"fi",
"fr",
"it",
"ko",
"pt"
],
"x-ms-enum": {
"name": "CustomEntityLookupSkillLanguage",
"modelAsString": true,
"values": [
{
"value": "da",
"description": "Danish"
},
{
"value": "de",
"description": "German"
},
{
"value": "en",
"description": "English"
},
{
"value": "es",
"description": "Spanish"
},
{
"value": "fi",
"description": "Finnish"
},
{
"value": "fr",
"description": "French"
},
{
"value": "it",
"description": "Italian"
},
{
"value": "ko",
"description": "Korean"
},
{
"value": "pt",
"description": "Portuguese"
}
]
},
"description": "The language codes supported for input text by CustomEntityLookupSkill."
},
"EntityRecognitionSkillLanguage": {
"type": "string",
"enum": [
Expand Down
Loading