Comments (2)
I suggest to implement alignment path length as denominator instead of the GT length (which can be >1):
dinglehopper/qurator/dinglehopper/character_error_rate.py
Lines 24 to 28 in 2497876
(Ideally, you implement all 3 length options: alignment path, maximum sequence, GT sequence.)
The problem for dinglehopper is that your levenshtein_matrix
does not give you the alignment path, you only have the resulting minimum distance.
from dinglehopper.
Update: I recommend using rapidfuzz's normalized_distance
instead of just dividing distance
by the GT length. Internally (in the CPP backend) the denominator is calculated as the actual path length (=maximum distance).
from dinglehopper.
Related Issues (20)
- Test cli_line_dirs
- Tests broken, again HOT 4
- Review API w.r.t. to keyword only arguments HOT 1
- Tests failing + Wrong badge HOT 5
- mypy vs pre-commit mypy HOT 2
- newlines not removed in plain_extract HOT 5
- Windows support HOT 5
- Python 3.12 support broken HOT 3
- Confusing "Tests Report" in GH Actions
- Test CLIs
- Test reports broken HOT 3
- Add TEI support
- Review changes of #83
- setup.cfg → pyproject.toml HOT 3
- Install is now broken HOT 2
- GitHub Actions HOT 1
- Review multimethod dependency
- Regression with newest ocrd version HOT 4
- dinglehopper --version, ocrd-dinglehopper --version HOT 1
- Detect if no text was extracted / if there are grave inconsistencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dinglehopper.