Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Being able to get not only the "most possible" language but an ordered list of the languages and their respective score #2

Open
allan-simon opened this issue Nov 4, 2012 · 0 comments

Comments

@allan-simon
Copy link
Owner

Internally the detector rank the languages using two technic

absolute ranking (which use a score based on the absolute number of time n-grams appear in the database for a given language, i.e English have more chances to get high score than Shanghainese for exemple)

relative ranking which use a score based on the proportion of the n-gram in that language , regardless of how many sentences this language has

so it would be good to be able to expose this to the user like

{
"absolute" : {
"eng" : 67
"fra" : 42,

 },
 "relative" :  {
       "fra" : 350
       "eng" :  34 ,
      "epo" :  6
 }

}

This way they'll be able to do more computation on their side (i.e testing a better detection algorithm etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant