Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
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
42 changes: 21 additions & 21 deletions lib/services/cognitiveServicesTextAnalytics/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class EntityRecord {
* @member {string} [bingId] Bing unique identifier of the recognized entity.
* Use in conjunction with the Bing Entity Search API to fetch additional
* relevant information.
* @member {string} [type] Entity type from Named Entity Recognition model
* @member {string} [subType] Entity sub type from Named Entity Recognition
* model
*/
constructor() {
}
Expand Down Expand Up @@ -55,7 +58,6 @@ class EntityRecord {
},
matches: {
required: false,
readOnly: true,
serializedName: 'matches',
type: {
name: 'Sequence',
Expand Down Expand Up @@ -97,6 +99,20 @@ class EntityRecord {
type: {
name: 'String'
}
},
type: {
required: false,
serializedName: 'type',
type: {
name: 'String'
}
},
subType: {
required: false,
serializedName: 'subType',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,19 @@ export interface MatchRecord {
* @member {string} [bingId] Bing unique identifier of the recognized entity.
* Use in conjunction with the Bing Entity Search API to fetch additional
* relevant information.
* @member {string} [type] Entity type from Named Entity Recognition model
* @member {string} [subType] Entity sub type from Named Entity Recognition
* model
*/
export interface EntityRecord {
name?: string;
readonly matches?: MatchRecord[];
matches?: MatchRecord[];
wikipediaLanguage?: string;
wikipediaId?: string;
readonly wikipediaUrl?: string;
bingId?: string;
type?: string;
subType?: string;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,21 @@ export default class TextAnalyticsClient extends ServiceClient {
/**
* @summary The API returns a list of recognized entities in a given document.
*
* To get even more information on each recognized entity we recommend using
* the Bing Entity Search API by querying for the recognized entities names.
* See the <a
* The API returns a list of recognized entities in a given document. To get
* even more information on each recognized entity we recommend using the Bing
* Entity Search API by querying for the recognized entities names. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.The
* API returns a list of known entities and general named entities ("Person",
* "Location", "Organization" etc) in a given document. Known entities are
* returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be
* used in Bing Entity Search API. General named entities are returned with
* entity types. If a general named entity is also a known entity, then all
* information regarding it (Wikipedia Id, Bing Id, entity type etc) will be
* returned. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking#supported-types-for-named-entity-recognition">Supported
* Entity Types in Text Analytics API</a> for the list of supported Entity
* Types. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.
*
Expand All @@ -280,9 +292,21 @@ export default class TextAnalyticsClient extends ServiceClient {
/**
* @summary The API returns a list of recognized entities in a given document.
*
* To get even more information on each recognized entity we recommend using
* the Bing Entity Search API by querying for the recognized entities names.
* See the <a
* The API returns a list of recognized entities in a given document. To get
* even more information on each recognized entity we recommend using the Bing
* Entity Search API by querying for the recognized entities names. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.The
* API returns a list of known entities and general named entities ("Person",
* "Location", "Organization" etc) in a given document. Known entities are
* returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be
* used in Bing Entity Search API. General named entities are returned with
* entity types. If a general named entity is also a known entity, then all
* information regarding it (Wikipedia Id, Bing Id, entity type etc) will be
* returned. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking#supported-types-for-named-entity-recognition">Supported
* Entity Types in Text Analytics API</a> for the list of supported Entity
* Types. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,21 @@ function _sentiment(input, options, callback) {
/**
* @summary The API returns a list of recognized entities in a given document.
*
* To get even more information on each recognized entity we recommend using
* the Bing Entity Search API by querying for the recognized entities names.
* See the <a
* The API returns a list of recognized entities in a given document. To get
* even more information on each recognized entity we recommend using the Bing
* Entity Search API by querying for the recognized entities names. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.The
* API returns a list of known entities and general named entities ("Person",
* "Location", "Organization" etc) in a given document. Known entities are
* returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be
* used in Bing Entity Search API. General named entities are returned with
* entity types. If a general named entity is also a known entity, then all
* information regarding it (Wikipedia Id, Bing Id, entity type etc) will be
* returned. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking#supported-types-for-named-entity-recognition">Supported
* Entity Types in Text Analytics API</a> for the list of supported Entity
* Types. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.
*
Expand Down Expand Up @@ -621,7 +633,7 @@ class TextAnalyticsClient extends ServiceClient {

super(credentials, options);

this.baseUri = '{Endpoint}/text/analytics/v2.0';
this.baseUri = '{Endpoint}/text/analytics/v2.1-preview';
this.credentials = credentials;
this.endpoint = endpoint;

Expand Down Expand Up @@ -932,9 +944,21 @@ class TextAnalyticsClient extends ServiceClient {
/**
* @summary The API returns a list of recognized entities in a given document.
*
* To get even more information on each recognized entity we recommend using
* the Bing Entity Search API by querying for the recognized entities names.
* See the <a
* The API returns a list of recognized entities in a given document. To get
* even more information on each recognized entity we recommend using the Bing
* Entity Search API by querying for the recognized entities names. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.The
* API returns a list of known entities and general named entities ("Person",
* "Location", "Organization" etc) in a given document. Known entities are
* returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be
* used in Bing Entity Search API. General named entities are returned with
* entity types. If a general named entity is also a known entity, then all
* information regarding it (Wikipedia Id, Bing Id, entity type etc) will be
* returned. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking#supported-types-for-named-entity-recognition">Supported
* Entity Types in Text Analytics API</a> for the list of supported Entity
* Types. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.
*
Expand Down Expand Up @@ -970,9 +994,21 @@ class TextAnalyticsClient extends ServiceClient {
/**
* @summary The API returns a list of recognized entities in a given document.
*
* To get even more information on each recognized entity we recommend using
* the Bing Entity Search API by querying for the recognized entities names.
* See the <a
* The API returns a list of recognized entities in a given document. To get
* even more information on each recognized entity we recommend using the Bing
* Entity Search API by querying for the recognized entities names. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.The
* API returns a list of known entities and general named entities ("Person",
* "Location", "Organization" etc) in a given document. Known entities are
* returned with Wikipedia Id and Wikipedia link, and also Bing Id which can be
* used in Bing Entity Search API. General named entities are returned with
* entity types. If a general named entity is also a known entity, then all
* information regarding it (Wikipedia Id, Bing Id, entity type etc) will be
* returned. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/how-tos/text-analytics-how-to-entity-linking#supported-types-for-named-entity-recognition">Supported
* Entity Types in Text Analytics API</a> for the list of supported Entity
* Types. See the <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/text-analytics-supported-languages">Supported
* languages in Text Analytics API</a> for the list of enabled languages.
*
Expand Down