-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Changes in docs [Form Recognizer] #12216
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1462090
initial commit
rakshith91 1d5719b
one more change
rakshith91 cd185be
readme
rakshith91 cf99277
Apply suggestions from code review
2527ee2
Update sdk/formrecognizer/azure-ai-formrecognizer/README.md
4ea5b39
Update sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecogn…
b645363
Update sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecogn…
4f09334
comments
rakshith91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -93,11 +93,13 @@ def __init__(self, endpoint, credential, **kwargs): | |
def begin_training(self, training_files_url, use_training_labels, **kwargs): | ||
# type: (str, bool, Any) -> LROPoller[CustomFormModel] | ||
"""Create and train a custom model. The request must include a `training_files_url` parameter that is an | ||
externally accessible Azure storage blob container Uri (preferably a Shared Access Signature Uri). | ||
externally accessible Azure storage blob container Uri (preferably a Shared Access Signature Uri). Note that | ||
a container uri is accepted only when the container is public. | ||
Models are trained using documents that are of the following content type - 'application/pdf', | ||
'image/jpeg', 'image/png', 'image/tiff'. Other type of content in the container is ignored. | ||
|
||
:param str training_files_url: An Azure Storage blob container's SAS URI. | ||
:param str training_files_url: An Azure Storage blob container's SAS URI. A container uri can be used if the | ||
container is public. | ||
kristapratico marked this conversation as resolved.
Show resolved
Hide resolved
|
||
:param bool use_training_labels: Whether to train with labels or not. Corresponding labeled files must | ||
exist in the blob container. | ||
:keyword str prefix: A case-sensitive prefix string to filter documents in the source path for | ||
|
@@ -278,7 +280,9 @@ def get_copy_authorization(self, resource_id, resource_region, **kwargs): | |
:param str resource_id: Azure Resource Id of the target Form Recognizer resource | ||
where the model will be copied to. | ||
:param str resource_region: Location of the target Form Recognizer resource. A valid Azure | ||
region name supported by Cognitive Services. | ||
region name supported by Cognitive Services. For example, 'westus', 'eastus' etc. | ||
rakshith91 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
See https://azure.microsoft.com/en-us/global-infrastructure/services/?products=cognitive-services | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: remove the 'en-us' in the url |
||
for the regional availability of Cognitive Services | ||
:return: A dictionary with values for the copy authorization - | ||
"modelId", "accessToken", "resourceId", "resourceRegion", and "expirationDateTimeTicks". | ||
:rtype: Dict[str, Union[str, int]] | ||
|
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
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 |
---|---|---|
|
@@ -102,11 +102,13 @@ async def begin_training( | |
**kwargs: Any | ||
) -> AsyncLROPoller[CustomFormModel]: | ||
"""Create and train a custom model. The request must include a `training_files_url` parameter that is an | ||
externally accessible Azure storage blob container Uri (preferably a Shared Access Signature Uri). | ||
externally accessible Azure storage blob container Uri (preferably a Shared Access Signature Uri). Note that | ||
a container uri is accepted only when the container is public. | ||
Models are trained using documents that are of the following content type - 'application/pdf', | ||
'image/jpeg', 'image/png', 'image/tiff'. Other type of content in the container is ignored. | ||
|
||
:param str training_files_url: An Azure Storage blob container's SAS URI. | ||
:param str training_files_url: An Azure Storage blob container's SAS URI. A container uri can be used if the | ||
container is public. | ||
:param bool use_training_labels: Whether to train with labels or not. Corresponding labeled files must | ||
exist in the blob container. | ||
:keyword str prefix: A case-sensitive prefix string to filter documents in the source path for | ||
|
@@ -300,7 +302,7 @@ async def get_copy_authorization( | |
:param str resource_id: Azure Resource Id of the target Form Recognizer resource | ||
where the model will be copied to. | ||
:param str resource_region: Location of the target Form Recognizer resource. A valid Azure | ||
region name supported by Cognitive Services. | ||
region name supported by Cognitive Services. For example, 'westus', 'centraluseuap' etc. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add the link for async too? |
||
:return: A dictionary with values for the copy authorization - | ||
"modelId", "accessToken", "resourceId", "resourceRegion", and "expirationDateTimeTicks". | ||
:rtype: Dict[str, Union[str, int]] | ||
|
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't look like this is used