Skip to content

Commit 4562cf8

Browse files
committed
fix typo and update version
1 parent 9282df6 commit 4562cf8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/examples.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,10 @@ Now let's look at how to extract tables from a document using the ``ocrpy.parser
110110
DOC_PATH = '../documents/example_document_with_table.pdf' # path to an image or pdf file on s3 bucket, gcs bucket or local directory.
111111
AWS_CREDENTIALS = ".credentials/aws-credentials.env" # path to the aws credentials file.
112112
113+
reader = DocumentReader(file=DOC_PATH)
113114
table_parser = TableParser(credentials=AWS_CREDENTIALS)
114115
115-
parsed_table = table_parser.parse(DOC_PATH, attempt_csv_conversion=False)
116+
parsed_table = table_parser.parse(reader, attempt_csv_conversion=False)
116117
117118
.. note:: ``ocrpy`` currently supports table extraction only with the ``aws-textract`` parser backend.
118119
Support for other parser backends will be added soon.

ocrpy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.3.7"
1+
__version__ = "0.3.8"
22

33
import warnings
44

0 commit comments

Comments
 (0)