aws-samples / aws-samples/amazon-textract-code-samples
Bug with Detecting Merged Cells And Headers on fictitious bank statement
- 主要言語
- Jupyter Notebook
- スター
- 449
- フォーク
- 262
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When running the notebook https://github.com/aws-samples/amazon-textract-code-samples/blob/master/python/Textract-Table-Merged-Cells-And-Headers.ipynb you get following error
`Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "", line 5, in
from textractprettyprinter.t_pretty_print import Pretty_Print_Table_Format, Textract_Pretty_Print, get_string, get_tables_string
File "/opt/conda/lib/python3.7/site-packages/textractprettyprinter/__init__.py", line 3, in
from .t_pretty_print import Pretty_Print_Table_Format as Pretty_Print_Table_Format
File "/opt/conda/lib/python3.7/site-packages/textractprettyprinter/t_pretty_print.py", line 1, in
import trp
File "/opt/conda/lib/python3.7/site-packages/trp/__init__.py", line 31
print ip
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(ip)?`
This is fixed by adding
`!pip install textract-trp`
Once that is fixed you get following error
`AttributeError: 'Table' object has no attribute 'get_header_field_names'`
コントリビューションガイド
調査の方向性
まず Textract-Table-Merged-Cells-And-Headers.ipynb を実行し、textractprettyprinter と trp の import を確認します。Python 3.7 SyntaxError と、存在しない Table.get_header_field_names メソッドの原因となっているパッケージの互換性を確認します。完了条件は、どちらのエラーも発生せずにノートブックが結合セルとヘッダーの検出を完了することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, jupyter-notebook, python
- 領域
- cloud
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100