-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR cognitiveservices/data-plane/TextAnalytics] [Cognitive Servic…
…es] Update endpoint URL template for TextAnalytics. (#2261) * Generated from a630b12320f25ed377697f8eb1c036b8e5965948 [cognitive Services] Update endpoint URL template for TextAnalytics. * Generated from a630b12320f25ed377697f8eb1c036b8e5965948 [cognitive Services] Update endpoint URL template for TextAnalytics.
- Loading branch information
1 parent
5887834
commit 3d1f731
Showing
39 changed files
with
3,920 additions
and
43 deletions.
There are no files selected for viewing
435 changes: 435 additions & 0 deletions
435
...ava/com/microsoft/azure/cognitiveservices/language/textanalytics/TextAnalyticsClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
830 changes: 830 additions & 0 deletions
830
...zure/cognitiveservices/language/textanalytics/implementation/TextAnalyticsClientImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
...microsoft/azure/cognitiveservices/language/textanalytics/implementation/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for | ||
// license information. | ||
// | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
/** | ||
* This package contains the implementation classes for TextAnalyticsClient. | ||
* The Text Analytics API is a suite of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver best in class predictions. Further documentation can be found in https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. | ||
*/ | ||
package com.microsoft.azure.cognitiveservices.language.textanalytics.implementation; |
44 changes: 44 additions & 0 deletions
44
.../java/com/microsoft/azure/cognitiveservices/language/textanalytics/models/BatchInput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.cognitiveservices.language.textanalytics.models; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The BatchInput model. | ||
*/ | ||
public class BatchInput { | ||
/** | ||
* The documents property. | ||
*/ | ||
@JsonProperty(value = "documents") | ||
private List<Input> documents; | ||
|
||
/** | ||
* Get the documents value. | ||
* | ||
* @return the documents value | ||
*/ | ||
public List<Input> documents() { | ||
return this.documents; | ||
} | ||
|
||
/** | ||
* Set the documents value. | ||
* | ||
* @param documents the documents value to set | ||
* @return the BatchInput object itself. | ||
*/ | ||
public BatchInput withDocuments(List<Input> documents) { | ||
this.documents = documents; | ||
return this; | ||
} | ||
|
||
} |
97 changes: 97 additions & 0 deletions
97
...com/microsoft/azure/cognitiveservices/language/textanalytics/models/DetectedLanguage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.cognitiveservices.language.textanalytics.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The DetectedLanguage model. | ||
*/ | ||
public class DetectedLanguage { | ||
/** | ||
* Long name of a detected language (e.g. English, French). | ||
*/ | ||
@JsonProperty(value = "name") | ||
private String name; | ||
|
||
/** | ||
* A two letter representation of the detected language according to the | ||
* ISO 639-1 standard (e.g. en, fr). | ||
*/ | ||
@JsonProperty(value = "iso6391Name") | ||
private String iso6391Name; | ||
|
||
/** | ||
* A confidence score between 0 and 1. Scores close to 1 indicate 100% | ||
* certainty that the identified language is true. | ||
*/ | ||
@JsonProperty(value = "score") | ||
private Double score; | ||
|
||
/** | ||
* Get long name of a detected language (e.g. English, French). | ||
* | ||
* @return the name value | ||
*/ | ||
public String name() { | ||
return this.name; | ||
} | ||
|
||
/** | ||
* Set long name of a detected language (e.g. English, French). | ||
* | ||
* @param name the name value to set | ||
* @return the DetectedLanguage object itself. | ||
*/ | ||
public DetectedLanguage withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get a two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr). | ||
* | ||
* @return the iso6391Name value | ||
*/ | ||
public String iso6391Name() { | ||
return this.iso6391Name; | ||
} | ||
|
||
/** | ||
* Set a two letter representation of the detected language according to the ISO 639-1 standard (e.g. en, fr). | ||
* | ||
* @param iso6391Name the iso6391Name value to set | ||
* @return the DetectedLanguage object itself. | ||
*/ | ||
public DetectedLanguage withIso6391Name(String iso6391Name) { | ||
this.iso6391Name = iso6391Name; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get a confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. | ||
* | ||
* @return the score value | ||
*/ | ||
public Double score() { | ||
return this.score; | ||
} | ||
|
||
/** | ||
* Set a confidence score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. | ||
* | ||
* @param score the score value to set | ||
* @return the DetectedLanguage object itself. | ||
*/ | ||
public DetectedLanguage withScore(Double score) { | ||
this.score = score; | ||
return this; | ||
} | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
.../microsoft/azure/cognitiveservices/language/textanalytics/models/EntitiesBatchResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.cognitiveservices.language.textanalytics.models; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The EntitiesBatchResult model. | ||
*/ | ||
public class EntitiesBatchResult { | ||
/** | ||
* The documents property. | ||
*/ | ||
@JsonProperty(value = "documents", access = JsonProperty.Access.WRITE_ONLY) | ||
private List<EntitiesBatchResultItem> documents; | ||
|
||
/** | ||
* The errors property. | ||
*/ | ||
@JsonProperty(value = "errors", access = JsonProperty.Access.WRITE_ONLY) | ||
private List<ErrorRecord> errors; | ||
|
||
/** | ||
* Get the documents value. | ||
* | ||
* @return the documents value | ||
*/ | ||
public List<EntitiesBatchResultItem> documents() { | ||
return this.documents; | ||
} | ||
|
||
/** | ||
* Get the errors value. | ||
* | ||
* @return the errors value | ||
*/ | ||
public List<ErrorRecord> errors() { | ||
return this.errors; | ||
} | ||
|
||
} |
48 changes: 48 additions & 0 deletions
48
...rosoft/azure/cognitiveservices/language/textanalytics/models/EntitiesBatchResultItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.cognitiveservices.language.textanalytics.models; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The EntitiesBatchResultItem model. | ||
*/ | ||
public class EntitiesBatchResultItem { | ||
/** | ||
* Unique document identifier. | ||
*/ | ||
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) | ||
private String id; | ||
|
||
/** | ||
* Recognized entities in the document. | ||
*/ | ||
@JsonProperty(value = "entities", access = JsonProperty.Access.WRITE_ONLY) | ||
private List<EntityRecord> entities; | ||
|
||
/** | ||
* Get unique document identifier. | ||
* | ||
* @return the id value | ||
*/ | ||
public String id() { | ||
return this.id; | ||
} | ||
|
||
/** | ||
* Get recognized entities in the document. | ||
* | ||
* @return the entities value | ||
*/ | ||
public List<EntityRecord> entities() { | ||
return this.entities; | ||
} | ||
|
||
} |
Oops, something went wrong.