pemistahl / lingua-py

The most accurate natural language detection library for Python, suitable for short text and mixed-language text
Apache License 2.0
1.1k stars 44 forks source link

Add absolute confidence metric #78

Closed aditya-hari closed 1 year ago

aditya-hari commented 1 year ago

Is it possible to get the non-relative confidence score for predictions? I want to identify the language of some text I have but I want to filter it based on the confidence score, say only considering the translation if the confidence is over 0.99, but I can't figure out how to get this raw number.

pemistahl commented 1 year ago

Thank you @aditya-hari for this feature request. I will think about how to implement this.