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.08k stars 44 forks source link

Confidence scores on multiple languages detection #149

Open Galvo87 opened 1 year ago

Galvo87 commented 1 year ago

Hi! Is there a specific method to get confidence scores when detecting multiple languages in mixed-language texts? Should I calculate it myself based on the DetectionResult occurrences?

pemistahl commented 1 year ago

Hi @Galvo87, thank you for your question and sorry for my late response.

No, currently there is no method that calculates the confidence score for each detected language. But it's certainly useful to have it, so I will try to implement it.