Skip to content

Commit a0da408

Browse files
docs: updated comments (#11950)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 578242041 Source-Link: googleapis/googleapis@f9bd3d0 Source-Link: googleapis/googleapis-gen@ee681d8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImVlNjgxZDhlY2IzNDIxMDE3ZDk0ZGNjNGYwNTQyM2Q5M2RlYjRhMGQifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8c78ad9 commit a0da408

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_io.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class OcrConfig(proto.Message):
267267
disable_character_boxes_detection (bool):
268268
Turn off character box detector in OCR
269269
engine. Character box detection is enabled by
270-
default in OCR 2.0+ processors.
270+
default in OCR 2.0 (and later) processors.
271271
premium_features (google.cloud.documentai_v1.types.OcrConfig.PremiumFeatures):
272272
Configurations for premium OCR features.
273273
"""
@@ -299,7 +299,8 @@ class PremiumFeatures(proto.Message):
299299
Attributes:
300300
enable_selection_mark_detection (bool):
301301
Turn on selection mark detector in OCR
302-
engine. Only available in OCR 2.0+ processors.
302+
engine. Only available in OCR 2.0 (and later)
303+
processors.
303304
compute_style_info (bool):
304305
Turn on font identification model and return
305306
font style information.

packages/google-cloud-documentai/google/cloud/documentai_v1/types/document_processor_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ class ProcessOptions(proto.Message):
103103
104104
This field is a member of `oneof`_ ``page_range``.
105105
from_start (int):
106-
Only process certain pages from the start,
107-
process all if the document has less pages.
106+
Only process certain pages from the start.
107+
Process all if the document has fewer pages.
108108
109109
This field is a member of `oneof`_ ``page_range``.
110110
from_end (int):

packages/google-cloud-documentai/noxfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@
2929

3030
BLACK_VERSION = "black[jupyter]==23.7.0"
3131
ISORT_VERSION = "isort==5.11.0"
32+
3233
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3334

35+
3436
DEFAULT_PYTHON_VERSION = "3.9"
3537

3638
UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"]
@@ -89,6 +91,7 @@ def lint(session):
8991
"--check",
9092
*LINT_PATHS,
9193
)
94+
9295
session.run("flake8", "google", "tests")
9396

9497

0 commit comments

Comments
 (0)