Commit Graph

33 Commits (1af062e1a956317d3d887256adfbe3c76d1457ad)

Author SHA1 Message Date
Gerber, Mike 5cbeb7b0dd dinglehopper: Support disabling the metrics using CLI option --no-metrics
Gerber, Mike 745095e52c dinglehopper: Include number of characters and words in JSON report
Gerber, Mike 48a31ce672 Revert "Merge branch 'master' of https://github.com/qurator-spk/sbb_textline_detector"
This reverts commit 2c89bf3b35ee290d7b830ef270df3a96aa48245e, reversing
changes made to 9f7e413148ca5dbac9b555d7b0d0a5fa3a0f5340.
b-vr103 1303a7d92f Merge branch 'master' of https://github.com/qurator-spk/sbb_textline_detector
Gerber, Mike f32eb9eb69 🐛 dinglehopper: Escape text inserted into HTML (Fixes )
Gerber, Mike 82e863fac2 📝 dinglehopper: Document seq_editops()
Gerber, Mike 5ccdace1dd 🎨 dinglehopper: Move working_directory() context manager into tests/util
Gerber, Mike f98c527c93 🐛 dinglehopper: Fix working_directory() context manager
Gerber, Mike 5273d10bac 🐛 dinglehopper: Generate a loadable JSON report even if CER=∞
Gerber, Mike ced6504ad0 🎨 dinglehopper: Expose clearing the Levenshtein cache as a function
Gerber, Mike 5cf4eddaeb dinglehopper: Clear Levenshtein cache between OCR-D files
Gerber, Mike 58ff140bc0 ️ dinglehopper: Improve performance by caching the Levensthein matrix
Motivated by [a pull
request](https://github.com/qurator-spk/dinglehopper/pull/7) by
@JKamlah, implement a cache of the Levensthein matrix calculation.

We calculated the Levenshtein matrixes for characters and words twice:
Once for the error rates, once for the alignment.
Gerber, Mike 11a6341641 🧹 dinglehopper: Remove broken implementation of the unordered word error rate
Gerber, Mike f22228840e 🧹 dinglehopper: Use exclusively relative imports in tests
Gerber, Mike d61c076aad 🧹 dinglehopper: Remove debug print()s
Gerber, Mike 12a48f3bfe dinglehopper: Test aligning lists of lines
Gerber, Mike 680c2a2661 🐛 dinglehopper: Fix test_ocrd_cli for Python 3.5, again, and again
Gerber, Mike 7cf1a540f4 🐛 dinglehopper: Fix test_ocrd_cli for Python 3.5, again
Gerber, Mike 49e2065ad6 🐛 dinglehopper: Fix test_ocrd_cli for Python 3.5
Gerber, Mike 86178271df dinglehopper: Fix repeated tests for the OCR-D interface
Gerber, Mike b6f50ef853 dinglehopper: Add a test for the OCR-D interface
Konstantin Baierer 2ca44af31d ocrd-tool: add category
Gerber, Mike c30553985f � dinglehopper: Substitute more characters
Gerber, Mike 493541fddf 🐛 dinglehopper: Always work with NFC text
Gerber, Mike df93c80e5d 🐛 dinglehopper: Always work with NFC text
Gerber, Mike 715b813bbc � dinglehopper: Add two more eMOP ligatures
Gerber, Mike 8d055e7b6e 🐛 dinglehopper: Work on NFC'ed grapheme clusters when aligning text
Gerber, Mike 534958be1d 🐛 dinglehopper: Fix sorting the reading order
Regions were sorted wrongly when there are more than 9 regions in an
OrderedGroup because the index was sorted alphabetically, not
numerically. Fix this by converting the index to integers.
Gerber, Mike 10f010eaa8 🐛 dinglehopper: Do not throw error if a region ID is not found
The ReadingOrder might contain regions of types other than text regions,
so not finding a TextRegion with the referenced ID is not an error.
Downgrade to a warning for now.
Gerber, Mike 8237b3edaf � dinglehopper: Substitute more characters
Gerber, Mike 02a0e093bf dinglehopper: Add OCR-D interface
Gerber, Mike 495919c06d 🧹 dinglehopper: Move pytest.ini
Gerber, Mike 89048bf55d ➡ Move dinglehopper into its own directory