aws-samples / aws-samples/amazon-textract-textractor

Proper way of getting cell content?

Open
#336 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
493
Forks
163
PR merge metrics
No merged PRs in 30d

Description

The codebase has this line: https://github.com/aws-samples/amazon-textract-textractor/blob/28d6110b08a3584edc4c87022a41d12961b88688/textractor/entities/table.py#L640

to retrieve the cell content. But there's already `cell.text`

I tried using `cell.text` but notice it's inaccurate. *Sometimes* it gives an empty string when it shouldn't.
Whereas `cell.__repr__().split(">")[1][1:]` gives more accurate results, although some characters are still missing.

What's going on?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.