cboulanger / excite-docker

Docker image with tools for the annotation of ML training docs for reference extraction based on the EXparser tools
https://cboulanger.github.io/excite-docker
GNU General Public License v3.0
0 stars 0 forks source link

Fail more gracefully if font issue is missing #7

Open cboulanger opened 2 years ago

cboulanger commented 2 years ago
  File "/app/run-main.py", line 171, in <module>
    call_extraction_training(sys.argv[2])
  File "/app/run-main.py", line 119, in call_extraction_training
    os.path.join(model_dir, get_version(), model_name))
  File "/app/EXparser/Training_Ext.py", line 52, in train_extraction
    row2 = reader2[uu]
IndexError: list index out of range

this error occurs if old training material is used which doesn't have the font columns