diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs index 6044ba45deb8..e0ca75b6e20b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/api/Azure.AI.TextAnalytics.netstandard2.0.cs @@ -892,12 +892,10 @@ public static partial class TextAnalyticsModelFactory public static Azure.AI.TextAnalytics.HealthcareEntityRelation HealthcareEntityRelation(Azure.AI.TextAnalytics.HealthcareEntityRelationType relationType, System.Collections.Generic.IEnumerable roles) { throw null; } public static Azure.AI.TextAnalytics.HealthcareEntityRelationRole HealthcareEntityRelationRole(string text, string category, int offset, int length, double confidenceScore, string entityName) { throw null; } public static Azure.AI.TextAnalytics.KeyPhraseCollection KeyPhraseCollection(System.Collections.Generic.IList keyPhrases, System.Collections.Generic.IList warnings = null) { throw null; } - public static Azure.AI.TextAnalytics.LinkedEntity LinkedEntity(string name = null, System.Collections.Generic.IEnumerable matches = null, string language = null, string dataSourceEntityId = null, System.Uri url = null, string dataSource = null, string bingEntitySearchApiId = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.AI.TextAnalytics.LinkedEntity LinkedEntity(string name, string dataSourceEntityId, string language, string dataSource, System.Uri url, System.Collections.Generic.IEnumerable matches) { throw null; } public static Azure.AI.TextAnalytics.LinkedEntity LinkedEntity(string name, string dataSourceEntityId, string language, string dataSource, System.Uri url, System.Collections.Generic.IEnumerable matches, string bingEntitySearchApiId) { throw null; } public static Azure.AI.TextAnalytics.LinkedEntityCollection LinkedEntityCollection(System.Collections.Generic.IList entities, System.Collections.Generic.IList warnings = null) { throw null; } - public static Azure.AI.TextAnalytics.LinkedEntityMatch LinkedEntityMatch(double confidenceScore = 0, string text = null, int offset = 0, int length = 0) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.AI.TextAnalytics.LinkedEntityMatch LinkedEntityMatch(string text, double score) { throw null; } public static Azure.AI.TextAnalytics.LinkedEntityMatch LinkedEntityMatch(string text, double score, int offset, int length) { throw null; } diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs index 43d7f97e0965..8b456f67b729 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs @@ -14,32 +14,6 @@ namespace Azure.AI.TextAnalytics public static partial class TextAnalyticsModelFactory { - /// Initializes new instance of LinkedEntity structure. - /// Entity Linking formal name. - /// List of instances this entity appears in the text. - /// Language used in the data source. - /// Unique identifier of the recognized entity from the data source. - /// URL for the entity's page from the data source. - /// Data source used to extract entity linking, such as Wiki/Bing etc. - /// Bing Entity Search API unique identifier of the recognized entity. - /// A new instance for mocking. - public static LinkedEntity LinkedEntity(string name = default, IEnumerable matches = default, string language = default, string dataSourceEntityId = default, Uri url = default, string dataSource = default, string bingEntitySearchApiId = default) - { - matches ??= new List(); - return new LinkedEntity(name, matches, language, dataSourceEntityId, url, dataSource, bingEntitySearchApiId); - } - - /// Initializes new instance of LinkedEntityMatch structure. - /// If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned. - /// Entity text as appears in the request. - /// Start position for the entity match text. - /// Length for the entity match text. - /// A new instance for mocking. - public static LinkedEntityMatch LinkedEntityMatch(double confidenceScore = default, string text = default, int offset = default, int length = default) - { - return new LinkedEntityMatch(confidenceScore, text, offset, length); - } - /// Initializes new instance of HealthcareEntityAssertion class. /// Describes any conditionality on the entity. /// Describes the entities certainty and polarity. diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs index bff035dd9ced..f1e3e0cc72d6 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/TextAnalyticsModelFactory.cs @@ -557,6 +557,32 @@ public static RecognizeLinkedEntitiesResultCollection RecognizeLinkedEntitiesRes return new RecognizeLinkedEntitiesResultCollection(list.ToList(), statistics, modelVersion); } + /// Initializes new instance of LinkedEntity structure. + /// Entity Linking formal name. + /// List of instances this entity appears in the text. + /// Language used in the data source. + /// Unique identifier of the recognized entity from the data source. + /// URL for the entity's page from the data source. + /// Data source used to extract entity linking, such as Wiki/Bing etc. + /// Bing Entity Search API unique identifier of the recognized entity. + /// A new instance for mocking. + internal static LinkedEntity LinkedEntity(string name = default, IEnumerable matches = default, string language = default, string dataSourceEntityId = default, Uri url = default, string dataSource = default, string bingEntitySearchApiId = default) + { + matches ??= new List(); + return new LinkedEntity(name, matches, language, dataSourceEntityId, url, dataSource, bingEntitySearchApiId); + } + + /// Initializes new instance of LinkedEntityMatch structure. + /// If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned. + /// Entity text as appears in the request. + /// Start position for the entity match text. + /// Length for the entity match text. + /// A new instance for mocking. + internal static LinkedEntityMatch LinkedEntityMatch(double confidenceScore = default, string text = default, int offset = default, int length = default) + { + return new LinkedEntityMatch(confidenceScore, text, offset, length); + } + #endregion Linked Entities #region Action Result Models