Bug with Detecting Merged Cells And Headers on fictitious bank statement
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
调研方向
首先运行 Textract-Table-Merged-Cells-And-Headers.ipynb,并检查其中对 textractprettyprinter 和 trp 的导入。检查导致 Python 3.7 SyntaxError 和缺少 Table.get_header_field_names 方法的包兼容性;当 notebook 在不出现这两个错误的情况下完成合并单元格和表头检测时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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'
- 主要语言
- Jupyter Notebook
- 星标
- 449
- 派生
- 262
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aws-samples/amazon-textract-code-samples 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 28/100
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 32/100
查看 aws-samples/amazon-textract-code-samples 的全部 Issue
相似的 Issue
-
kind/bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 90/100
cloudposse/atmos#3284 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
ansible-collections/community.aws#2503 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 70/100
denoland/svelte-adapter#28 · 3 条评论 ·