mikemccand / chromium-compact-language-detector

Automatically exported from code.google.com/p/chromium-compact-language-detector
160 stars 31 forks source link

No langauges output despite isReliable=True #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import cld2
2. cld2.detect('interaktive infografik \xc3\xbcber videospielkonsolen')

What is the expected output? What do you see instead?
The output is 

(True, 49, ())

What version of the product are you using? On what operating system?
Python 2.7.3 (default, Aug  1 2012, 05:14:39) 
[GCC 4.6.3] on linux2

cld2 was built using SVN rev 63, 
cld python module was built using hg changeset b1cad3f04ef4

Original issue reported on code.google.com by saf...@gmail.com on 5 Aug 2013 at 5:26

GoogleCodeExporter commented 9 years ago
Hmm, that is odd; seems like isReliable should be false in this case.

Can you instead open an issue at https://code.google.com/p/cld2?  As of CLD2, 
this project just has the Python bindings for CLD2, and I think this fix should 
happen in CLD2?

Original comment by luc...@mikemccandless.com on 5 Aug 2013 at 5:40

GoogleCodeExporter commented 9 years ago
Ok, I've done that: https://code.google.com/p/cld2/issues/detail?id=1

Original comment by saf...@gmail.com on 6 Aug 2013 at 3:10

GoogleCodeExporter commented 9 years ago
OK I've fixed the Python bindings to always return 3 languages, even if some of 
those are UNKNOWN.

Original comment by mikemcc...@gmail.com on 9 Aug 2013 at 8:08

GoogleCodeExporter commented 9 years ago

Original comment by luc...@mikemccandless.com on 12 Sep 2013 at 6:42