doc-analysis / TableBank

TableBank: A Benchmark Dataset for Table Detection and Recognition
Apache License 2.0
987 stars 139 forks source link

Prediction Using Table Recognition #21

Closed sindhurk closed 4 years ago

sindhurk commented 4 years ago

I used the follow command to predict structure of the table :

python translate.py -model model.pt --src_dir './tables/' --src './src_txt.txt' -output pred.txt

and I get the following error: AssertionError: Cannot use _dir with TextDataReader.

From your previous replies to issues https://github.com/doc-analysis/TableBank/issues/12 and https://github.com/doc-analysis/TableBank/issues/10, its looks that I can test the model by using -tgt (providing a ground truth file)

Can I not only predict on a sample?