Skip to content

Commit

Permalink
[AutoPR cognitiveservices/data-plane/TextAnalytics] [Cognitive Servic…
Browse files Browse the repository at this point in the history
…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
AutorestCI authored Jul 26, 2018
1 parent 5887834 commit 3d1f731
Show file tree
Hide file tree
Showing 39 changed files with 3,920 additions and 43 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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;
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;
}

}
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;
}

}
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;
}

}
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;
}

}
Loading

0 comments on commit 3d1f731

Please sign in to comment.