Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class OcrConfig(proto.Message):
disable_character_boxes_detection (bool):
Turn off character box detector in OCR
engine. Character box detection is enabled by
default in OCR 2.0+ processors.
default in OCR 2.0 (and later) processors.
premium_features (google.cloud.documentai_v1.types.OcrConfig.PremiumFeatures):
Configurations for premium OCR features.
"""
Expand Down Expand Up @@ -299,7 +299,8 @@ class PremiumFeatures(proto.Message):
Attributes:
enable_selection_mark_detection (bool):
Turn on selection mark detector in OCR
engine. Only available in OCR 2.0+ processors.
engine. Only available in OCR 2.0 (and later)
processors.
compute_style_info (bool):
Turn on font identification model and return
font style information.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class ProcessOptions(proto.Message):

This field is a member of `oneof`_ ``page_range``.
from_start (int):
Only process certain pages from the start,
process all if the document has less pages.
Only process certain pages from the start.
Process all if the document has fewer pages.

This field is a member of `oneof`_ ``page_range``.
from_end (int):
Expand Down
3 changes: 3 additions & 0 deletions packages/google-cloud-documentai/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@

BLACK_VERSION = "black[jupyter]==23.7.0"
ISORT_VERSION = "isort==5.11.0"

LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]


DEFAULT_PYTHON_VERSION = "3.9"

UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"]
Expand Down Expand Up @@ -89,6 +91,7 @@ def lint(session):
"--check",
*LINT_PATHS,
)

session.run("flake8", "google", "tests")


Expand Down