Skip to content

Comments

UX study updates#12586

Merged
samvaity merged 6 commits intoAzure:masterfrom
samvaity:ux-study
Jul 1, 2020
Merged

UX study updates#12586
samvaity merged 6 commits intoAzure:masterfrom
samvaity:ux-study

Conversation

@samvaity
Copy link
Member

No description provided.

@samvaity samvaity self-assigned this Jun 29, 2020
@samvaity samvaity requested a review from jeremymeng June 29, 2020 04:32
@samvaity samvaity linked an issue Jun 29, 2020 that may be closed by this pull request
18 tasks
Form content is returned in a collection of `FormPage` objects.
- Recognizing common fields from US receipts, using a pre-trained receipt model on the Form Recognizer service.
- [Recognizing common fields from US receipts](#recognize-receipts), using a pre-trained receipt model on the Form Recognizer service.
These fields and meta-data are returned in a collection of `USReceipt` objects.
Copy link
Contributor

@kristapratico kristapratico Jun 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
These fields and meta-data are returned in a collection of `USReceipt` objects.
These fields and meta-data are returned in a collection of `RecognizedForm` objects.

<!-- embedme ./src/samples/java/com/azure/ai/formrecognizer/ReadmeSamples.java#L195-L215 -->
```java
String trainingFilesUrl = "{training_set_SAS_URL}";
String trainingFilesUrl = "{<SAS-URL-of-your-form-folder-in-blob-storage>}";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"SAS-URL-of-your-form-folder-" makes me think I need to include the folder name in the url. I think "SAS-URL-of-your-container-in-blob-storage" might make more sense.

*
* @return A {@link PollerFlux} that polls the recognize custom form operation until it has completed, has failed,
* or has been cancelled. The completed operation returns a List of {@link FormPage}.
* @return A {@link PollerFlux} that polls the recognize layout operation until it has completed, has failed, or has
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we say content operation here?

* @param receiptUrl The URL of the receipt to analyze.
*
* @return A {@link PollerFlux} that polls the recognize receipt operation until it has completed, has failed,
* or has been cancelled. The completed operation returns a List of {@link RecognizedReceipt}.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* or has been cancelled. The completed operation returns a List of {@link RecognizedReceipt}.
* or has been cancelled. The completed operation returns a List of {@link RecognizedForm}.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also happens in other parts of the document

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still have the receipt design changes in a PR so this will be taken care there - #12380

* Train a model with labels: [TrainModelWithLabels][train_labeled_model] ([async][train_labeled_model_async])
* Manage custom models: [ManageCustomModels][manage_custom_models] ([async][manage_custom_models_async])
* Copy a model between Form Recognizer resources: [CopyModel][copy_model] ([async][copy_model_async])
* Recognize receipts: [RecognizeReceipts][recognize_receipts] ([RecognizeReceiptsAsync][recognize_receipts_async])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It still looks like the same line. What about making it a table? so sync and async links in different columns?
Or do a subsection or sync and another for async?

@@ -133,9 +133,9 @@ public final class FormRecognizerAsyncClient {
* @param length The exact length of the data. Size of the file must be less than 50 MB.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you validate the size in the client?
Also, is this constrain from the service?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not validate the size on the client and yes it is a constraint from the service.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer deleting this from here then, in case the service decides to change the limitations

* .tiff type file stream. Content-type is auto-detected and could be {@code null}.
*
* @return A {@link PollerFlux} that polls the recognize receipt operation until it has completed, has failed,
* @return A {@link PollerFlux} that polls the recognize custom form operation until it has completed, has failed,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it say recognized?

*
* @return A {@link PollerFlux} that polls the recognize receipt operation until it has completed, has failed,
* or has been cancelled. The completed operation returns a List of {@link FormPage}.
* @return A {@link PollerFlux} polls the recognize layout operation until it has completed, has failed, or has
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason we use layout instead of recognized content operation? similar to what Krista said above


/*
* Text content of the extracted field.
* Text content of the extracted line.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider changing to extracted element. it could be a whole line or a single word and eventually it could be the selection in a checkbox element


/**
* The text of the extracted item.
* The text content of the extracted line.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

* Other type of content is ignored.
* <p>The service does not support cancellation of the long running operation and returns with an
* error message indicating absence of cancellation support.</p>
* See <a href="https://docs.microsoft.com/en-us/azure/cognitive-services/form-recognizer/build-training-data-set#upload-your-training-data">here</a>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the en-us from the link so that it is set to the user locale

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same with other links


/**
* Get account information.
* Get account information for all custom models on the form recognizer account with an Http response.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because it also returns information about the resource itself (like the capacity) I will suggest

Suggested change
* Get account information for all custom models on the form recognizer account with an Http response.
* Get account information of the form recognizer account with an Http response.

*
* @return A {@link Mono} containing containing status code and HTTP headers
* @throws NullPointerException If {@code modelId} is {@code null}.
* @return A {@link Response} containing containing status code and HTTP headers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return A {@link Response} containing containing status code and HTTP headers
* @return A {@link Response} containing status code and HTTP headers

Copy link
Contributor

@kristapratico kristapratico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

samvaity and others added 2 commits June 29, 2020 18:19
…zure/ai/formrecognizer/FormRecognizerAsyncClient.java

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
…m/azure/ai/formrecognizer/FormRecognizerAsyncClientJavaDocCodeSnippets.java

Co-authored-by: Krista Pratico <krpratic@microsoft.com>
@samvaity
Copy link
Member Author

samvaity commented Jun 30, 2020

/azp run java - formrecognizer - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@samvaity samvaity merged commit 49ec0e2 into Azure:master Jul 1, 2020
@samvaity samvaity deleted the ux-study branch September 17, 2020 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address Feedback from JS/Java User Studies

3 participants