Open GoogleCodeExporter opened 8 years ago
Detector has getProbabilities() method that returns sorted languages list with
their probabilities.
http://code.google.com/p/language-detection/wiki/Tutorial
Is it you wish, isn't it?
Original comment by nakatani.shuyo
on 28 Apr 2011 at 8:37
Calculated probabilities (from updateLangProb method) are in prob vector, then
they are normalized. In the end you get a lot of prob=0 (because of an order of
magnitude) and some other (sum gives 100).
So you couldn't get probabilities for all languages(ok, you can but value is
0), but only for those which value is higest and an order of magnitude is
similar.
If you want see these values before normalization, look closer to
updateLangProb.
Original comment by markowsk...@gmail.com
on 28 Apr 2011 at 12:25
I'm sorry, I overlooked that getProbabilities() returns List<Languages> ... I
thought it was List<String> .... Thank you guys
Original comment by liska.jakub
on 28 Apr 2011 at 12:32
Original issue reported on code.google.com by
liska.jakub
on 27 Apr 2011 at 1:09