Skip to content

Skip NER level probability computation if there are no entities

Eva Bardou requested to merge skip-ner-lvl-proba into main

Closes #249 (closed)

Tested with this element from this process using a local worker:

2024-01-04 13:02:52,985 INFO/arkindex_worker: Processing borrower 1 (0119180c-a9d9-49d7-bbca-3bae85009e4a) (1/1)
2024-01-04 13:02:52,986 INFO/worker_dan.worker: Downloading image...
2024-01-04 13:02:57,707 INFO/dan.ocr.predict.inference: Loading images...
2024-01-04 13:02:57,908 INFO/dan.ocr.predict.inference: Images preprocessed!
2024-01-04 13:02:57,908 INFO/dan.ocr.predict.inference: Predicting...
2024-01-04 13:03:02,858 INFO/dan.ocr.predict.inference: Images processed
2024-01-04 13:03:02,858 INFO/dan.ocr.predict.inference: Prediction parsing...
2024-01-04 13:03:02,859 INFO/dan.ocr.predict.inference: Saving JSON prediction in /tmp/tmpbkuncviv.teklia/tmpbundjag0.json
2024-01-04 13:03:02,875 INFO/worker_dan.worker: Creating transcription on page

Merge request reports

Loading