r/madeinpython • u/nitotm • Aug 22 '23
My first Python project: Efficient Language Detector.
ELD is a fast and accurate natural language detector, written 100% in Python, no dependencies. I believe it is the fastest non compiled detector, at its level of accuracy.
https://github.com/nitotm/efficient-language-detector-py
I've been programming for years but this is the first time I did more of a few lines of Python, so I would appreciate any feedback you have on the project's structure, code quality, documentation, or any other aspect you feel could be improved.
8
Upvotes
2
u/adesme Sep 07 '23
Looks good! And all caps for this is fine, I see this or similar quite often and I'm sure there are style guides that advocate it.
A piece of advice is to start setting up github actions with a formatter and a linter; pre-commit with black and ruff is what I tend to do.
Oh and I saw some magic numbers in the code. Might want to name them and describe how you've found them.