fixit: Changes to DocAI Samples to simplify maintenence#9743
Conversation
|
Here is the summary of changes. You are about to add 17 region tags.
You are about to delete 7 region tags.
This comment is generated by snippet-bot.
|
7dc9e4a to
9bbdcf4
Compare
engelke
left a comment
There was a problem hiding this comment.
Don't disable flake8 entirely
- Consolidated process/batch process samples with processor versions - Update Quickstart to include Processor Creation - Consolidate Handle Response Samples into a single file to reduce code duplication - ~Not sure if I did the region tags completely correct, is there a way to test?~ - Update: Tested using Devsite staging and it looks correct - Moved Operations Tests into a single file and removed exception handling in sample - Add type updates from fixit #9991
39e1808 to
cde655e
Compare
| print_lines(page.lines, text) | ||
| print_tokens(page.tokens, text) | ||
|
|
||
| # Currently supported in version `pretrained-ocr-v1.1-2022-09-12` |
There was a problem hiding this comment.
Is there a way to state this concept, but not tie it to a specific version that will cause the sample to become stale quickly?
There was a problem hiding this comment.
Currently, this feature is only enabled in that version, but not the one that is newer (unless you send a specific parameter that is only enabled on the v1beta3 endpoint...) But supposedly this feature is going to be added to more versions later this quarter.
I could change this to say "only supported in some processor versions, refer to https://cloud.google.com/document-ai/docs/processors-list#processor_doc-ocr for more information" but I wanted to be more specific.
|
I will also make the docs update to update the sample files. |
…docs-samples into docai-processor-versions
6e15ef8 to
64bb497
Compare
Not sure if I did the region tags completely correct, is there a way to test?