Skip to content

Improve samples for Analyze #17811

Closed
Closed

Description

Samples.md:

  • Name of this file should be something like AnalyzeBatchActions
  • Make sure description talks about actions executed in a batch of documents

Samples source code:

  • Document input should have at least 2 documents so it is clear for a user that they can pass more than one. See an example here.
  • aysnc methods should use await operation.WaitForCompletionAsync(); for polling the operation
  • sync methods should use manual polling (while loop) for polling the operation
  • Ideally we will have only 4 files:
    • batch convenience with aysnc methods using await operation.WaitForCompletionAsync(); for polling the operation
    • batch convenience with sync methods using manual polling (while loop) for polling the operation
    • batch TextDocumentInput with aysnc methods using await operation.WaitForCompletionAsync(); for polling the operation
    • batch TextDocumentInput with sync methods using manual polling (while loop) for polling the operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Cognitive - Text Analytics

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions