File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,10 @@ Now let's look at how to extract tables from a document using the ``ocrpy.parser
110
110
DOC_PATH = ' ../documents/example_document_with_table.pdf' # path to an image or pdf file on s3 bucket, gcs bucket or local directory.
111
111
AWS_CREDENTIALS = " .credentials/aws-credentials.env" # path to the aws credentials file.
112
112
113
+ reader = DocumentReader(file = DOC_PATH )
113
114
table_parser = TableParser(credentials = AWS_CREDENTIALS )
114
115
115
- parsed_table = table_parser.parse(DOC_PATH , attempt_csv_conversion = False )
116
+ parsed_table = table_parser.parse(reader , attempt_csv_conversion = False )
116
117
117
118
.. note :: ``ocrpy`` currently supports table extraction only with the ``aws-textract`` parser backend.
118
119
Support for other parser backends will be added soon.
Original file line number Diff line number Diff line change 1
- __version__ = "0.3.7 "
1
+ __version__ = "0.3.8 "
2
2
3
3
import warnings
4
4
You can’t perform that action at this time.
0 commit comments