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

Sumeh/feature/textanalytics5.2 analyze #16785

Merged
merged 68 commits into from
Nov 16, 2020
Merged
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
daf5c6a
Initial Setup working
suhas92 Oct 29, 2020
c18dd3a
Added AnalyzeHealth Operation - build passing
suhas92 Oct 29, 2020
9fd3c8b
added healthcare samples sync and async
suhas92 Oct 29, 2020
3bd0b6d
fix build error - passing build
suhas92 Oct 29, 2020
4bc60dc
added healthcare cancellation - build passing
suhas92 Oct 29, 2020
45e36fd
added healthcare samples with cancellation - build passing
suhas92 Oct 29, 2020
1a7e8e5
HC samples added - build passing
suhas92 Oct 30, 2020
ad48831
Added ShowStats samples for healthcare
suhas92 Oct 30, 2020
b46f700
fix tests and build passing
suhas92 Oct 30, 2020
ca06d2f
update names and resolved comments
suhas92 Nov 2, 2020
03f77e5
resolved warnings for adding docstring
suhas92 Nov 2, 2020
3e7106b
removed unused functions from CLientCOmmon.cs
suhas92 Nov 2, 2020
ac28683
resolve comments
suhas92 Nov 2, 2020
9f013bb
resolved comments
suhas92 Nov 2, 2020
ba3162e
resolved comments
suhas92 Nov 2, 2020
7d8141d
resolved comments
suhas92 Nov 2, 2020
d4d7867
added async pageablle for pagination
suhas92 Nov 2, 2020
f750361
remove analyze commented code
suhas92 Nov 2, 2020
871d209
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 2, 2020
b1b8474
updated session record
suhas92 Nov 2, 2020
52abfa0
update tests endpoint to dev and record tests
suhas92 Nov 2, 2020
3f9d711
update env variables
suhas92 Nov 2, 2020
b5bb070
run exportapi.ps1
suhas92 Nov 2, 2020
0e1e4c3
Added RecogniseHealthcareEntitiesTests
suhas92 Nov 3, 2020
a8e922b
fixed async tests
suhas92 Nov 3, 2020
61e1083
removed stringindextype customization
suhas92 Nov 3, 2020
927697e
removed exception methods
suhas92 Nov 3, 2020
2fd3b11
added more tests and updated samples
suhas92 Nov 4, 2020
5a229d8
cleanup
suhas92 Nov 4, 2020
fe91e9f
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 4, 2020
53cf209
fixed apidev view issues
suhas92 Nov 4, 2020
f1d095e
fixed apidev view issues
suhas92 Nov 4, 2020
0f9a05b
resolved comments
suhas92 Nov 4, 2020
fc361a7
update session records
suhas92 Nov 4, 2020
dbe7b97
update readme
suhas92 Nov 5, 2020
54206d3
Merge branch 'sumeh/feature/textanalytics5.2' of https://github.com/s…
suhas92 Nov 5, 2020
a342b4d
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 5, 2020
3da217c
Revert "update readme"
suhas92 Nov 5, 2020
2c9db4a
resolved comments
suhas92 Nov 5, 2020
17ff41a
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 5, 2020
348d269
run export.ps1
suhas92 Nov 5, 2020
a64ebd1
update session records
suhas92 Nov 5, 2020
4a41858
updated docstrings
suhas92 Nov 6, 2020
d4c90dd
run update snippets
suhas92 Nov 6, 2020
0ab5e90
update ../test-resources.json
suhas92 Nov 6, 2020
106ae57
Merge branch 'sumeh/feature/textanalytics5.2' of https://github.com/s…
suhas92 Nov 6, 2020
5edce90
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 6, 2020
8a2e60d
fix flaky tests
suhas92 Nov 9, 2020
2bd403e
added analyze sdk code
suhas92 Nov 9, 2020
adb89c5
added tests and samples
suhas92 Nov 9, 2020
dc24a50
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 9, 2020
708b903
pull in master
suhas92 Nov 9, 2020
c9b4a98
resolved comments
suhas92 Nov 10, 2020
cb6914e
resolved comments
suhas92 Nov 12, 2020
bce412d
resolve comments
suhas92 Nov 12, 2020
b178027
update session records
suhas92 Nov 12, 2020
f52052a
run update snippits and exportApi script
suhas92 Nov 12, 2020
8973dfa
remove skip and top from options
suhas92 Nov 13, 2020
15b65b8
run exportapi script
suhas92 Nov 13, 2020
7111325
remove swagger
suhas92 Nov 13, 2020
6ce902d
update session records to remove top and skip
suhas92 Nov 13, 2020
714c882
update docstrings
suhas92 Nov 14, 2020
3f7fa6c
make options non default
suhas92 Nov 16, 2020
34c67b5
cleanup
suhas92 Nov 16, 2020
472bfba
cleanup
suhas92 Nov 16, 2020
36825c5
fix tests
suhas92 Nov 16, 2020
579878d
update session records
suhas92 Nov 16, 2020
f63d5bd
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net i…
suhas92 Nov 16, 2020
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
@@ -1,5 +1,35 @@
namespace Azure.AI.TextAnalytics
{
public partial class AnalyzeOperation : Azure.Operation<Azure.AI.TextAnalytics.AnalyzeOperationResult>
{
public AnalyzeOperation(string operationId, Azure.AI.TextAnalytics.TextAnalyticsClient client) { }
public override bool HasCompleted { get { throw null; } }
public override bool HasValue { get { throw null; } }
public override string Id { get { throw null; } }
public override Azure.AI.TextAnalytics.AnalyzeOperationResult Value { get { throw null; } }
public override Azure.Response GetRawResponse() { throw null; }
public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public override System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.TextAnalytics.AnalyzeOperationResult>> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public override System.Threading.Tasks.ValueTask<Azure.Response<Azure.AI.TextAnalytics.AnalyzeOperationResult>> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
public partial class AnalyzeOperationOptions : Azure.AI.TextAnalytics.TextAnalyticsRequestOptions
suhas92 marked this conversation as resolved.
Show resolved Hide resolved
{
public AnalyzeOperationOptions() { }
public string DisplayName { get { throw null; } set { } }
public Azure.AI.TextAnalytics.EntitiesTaskParameters EntitiesTaskParameters { get { throw null; } set { } }
public Azure.AI.TextAnalytics.KeyPhrasesTaskParameters KeyPhrasesTaskParameters { get { throw null; } set { } }
public Azure.AI.TextAnalytics.PiiTaskParameters PiiTaskParameters { get { throw null; } set { } }
}
public partial class AnalyzeOperationResult
{
internal AnalyzeOperationResult() { }
public string DisplayName { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.TextAnalyticsError> Errors { get { throw null; } }
public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } }
public Azure.AI.TextAnalytics.JobStatus Status { get { throw null; } }
public Azure.AI.TextAnalytics.AnalyzeTasks Tasks { get { throw null; } }
}
public partial class AnalyzeSentimentOptions : Azure.AI.TextAnalytics.TextAnalyticsRequestOptions
{
public AnalyzeSentimentOptions() { }
Expand All @@ -16,6 +46,18 @@ internal AnalyzeSentimentResultCollection() : base (default(System.Collections.G
public string ModelVersion { get { throw null; } }
public Azure.AI.TextAnalytics.TextDocumentBatchStatistics Statistics { get { throw null; } }
}
public partial class AnalyzeTasks
{
internal AnalyzeTasks() { }
public int Completed { get { throw null; } }
public Azure.AI.TextAnalytics.TasksStateTasksDetails Details { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.EntityRecognitionPiiTasksItem> EntityRecognitionPiiTasks { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.EntityRecognitionTasksItem> EntityRecognitionTasks { get { throw null; } }
public int Failed { get { throw null; } }
public int InProgress { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.KeyPhraseExtractionTasksItem> KeyPhraseExtractionTasks { get { throw null; } }
public int Total { get { throw null; } }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AspectSentiment
{
Expand Down Expand Up @@ -140,10 +182,12 @@ internal Entity() { }
public partial class EntityRecognitionPiiTasksItem : Azure.AI.TextAnalytics.TaskState
{
internal EntityRecognitionPiiTasksItem() { }
public Azure.AI.TextAnalytics.RecognizePiiEntitiesResultCollection Results { get { throw null; } }
}
public partial class EntityRecognitionTasksItem : Azure.AI.TextAnalytics.TaskState
{
internal EntityRecognitionTasksItem() { }
public Azure.AI.TextAnalytics.RecognizeEntitiesResultCollection Results { get { throw null; } }
}
public partial class ExtractKeyPhrasesResult : Azure.AI.TextAnalytics.TextAnalyticsResult
{
Expand Down Expand Up @@ -211,8 +255,9 @@ public JobManifestTasks() { }
public static Azure.AI.TextAnalytics.JobStatus Cancelled { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Cancelling { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Failed { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Notstarted { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Partiallycompleted { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus NotStarted { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus PartiallyCompleted { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Rejected { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Running { get { throw null; } }
public static Azure.AI.TextAnalytics.JobStatus Succeeded { get { throw null; } }
public bool Equals(Azure.AI.TextAnalytics.JobStatus other) { throw null; }
Expand All @@ -233,6 +278,7 @@ internal KeyPhraseCollection() : base (default(System.Collections.Generic.IList<
public partial class KeyPhraseExtractionTasksItem : Azure.AI.TextAnalytics.TaskState
{
internal KeyPhraseExtractionTasksItem() { }
public Azure.AI.TextAnalytics.ExtractKeyPhrasesResultCollection Results { get { throw null; } }
}
public partial class KeyPhrasesTask
{
Expand Down Expand Up @@ -402,17 +448,9 @@ internal SentimentConfidenceScores() { }
public double Neutral { get { throw null; } }
public double Positive { get { throw null; } }
}
public partial class TasksStateTasks
public partial class TasksStateTasksDetails : Azure.AI.TextAnalytics.TaskState
{
internal TasksStateTasks() { }
public int Completed { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.TaskState> Details { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.EntityRecognitionPiiTasksItem> EntityRecognitionPiiTasks { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.EntityRecognitionTasksItem> EntityRecognitionTasks { get { throw null; } }
public int Failed { get { throw null; } }
public int InProgress { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<Azure.AI.TextAnalytics.KeyPhraseExtractionTasksItem> KeyPhraseExtractionTasks { get { throw null; } }
public int Total { get { throw null; } }
internal TasksStateTasksDetails() { }
}
public partial class TaskState
{
Expand Down Expand Up @@ -481,6 +519,10 @@ public TextAnalyticsClient(System.Uri endpoint, Azure.Core.TokenCredential crede
public virtual Azure.Response<Azure.AI.TextAnalytics.RecognizePiiEntitiesResultCollection> RecognizePiiEntitiesBatch(System.Collections.Generic.IEnumerable<string> documents, string language = null, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.TextAnalytics.RecognizePiiEntitiesResultCollection>> RecognizePiiEntitiesBatchAsync(System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.TextAnalytics.RecognizePiiEntitiesResultCollection>> RecognizePiiEntitiesBatchAsync(System.Collections.Generic.IEnumerable<string> documents, string language = null, Azure.AI.TextAnalytics.RecognizePiiEntitiesOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AI.TextAnalytics.AnalyzeOperation StartAnalyzeOperationBatch(System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AI.TextAnalytics.AnalyzeOperation StartAnalyzeOperationBatch(System.Collections.Generic.IEnumerable<string> documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.AI.TextAnalytics.AnalyzeOperation> StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable<Azure.AI.TextAnalytics.TextDocumentInput> documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.AI.TextAnalytics.AnalyzeOperation> StartAnalyzeOperationBatchAsync(System.Collections.Generic.IEnumerable<string> documents, Azure.AI.TextAnalytics.AnalyzeOperationOptions options, string language = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual string StartCancelHealthJob(Azure.AI.TextAnalytics.HealthcareOperation operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<string> StartCancelHealthJobAsync(Azure.AI.TextAnalytics.HealthcareOperation operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.AI.TextAnalytics.HealthcareOperation StartHealthcare(string document, string language = null, Azure.AI.TextAnalytics.HealthcareOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand Down
36 changes: 36 additions & 0 deletions sdk/textanalytics/Azure.AI.TextAnalytics/src/AnalyzeBatchInput.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using Azure.Core;

namespace Azure.AI.TextAnalytics.Models
{
/// <summary>
/// AnalyzeBatchInput.
/// </summary>
[CodeGenModel("AnalyzeBatchInput")]
internal partial class AnalyzeBatchInput
{

/// <summary> Initializes a new instance of AnalyzeBatchInput. </summary>
/// <param name="analysisInput"> Contains a set of input documents to be analyzed by the service. </param>
/// <param name="tasks"> The set of tasks to execute on the input documents. Cannot specify the same task more than once. </param>
/// <param name="displayName">The name wassigned for the job</param>
/// <exception cref="ArgumentNullException"> <paramref name="analysisInput"/> or <paramref name="tasks"/> is null. </exception>
public AnalyzeBatchInput(MultiLanguageBatchInput analysisInput, JobManifestTasks tasks, string displayName)
{
if (analysisInput == null)
{
throw new ArgumentNullException(nameof(analysisInput));
}
if (tasks == null)
{
throw new ArgumentNullException(nameof(tasks));
}
AnalysisInput = analysisInput;
Tasks = tasks;
DisplayName = displayName;
}
}
}
Loading