stepos01 / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

No way to get list of languages supported #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey,

after I do 

DetectorFactory.loadProfile(new 
File(LangDetector.class.getClassLoader().getResource("profiles").toURI()));

then langlist is not accessible neither in DetectoryFactory, nor in Detector.

There is simply no way of checking what languages it supports.

Am I missing something ? Or it really can't be done.

Regards, Jakub

Original issue reported on code.google.com by liska.jakub on 17 Aug 2011 at 9:14

GoogleCodeExporter commented 9 years ago
The code you mentioned needs creating a jar file bundled language profiles by 
yourself.
See the standard initialization at here 
http://code.google.com/p/language-detection/wiki/Tutorial .

Original comment by nakatani.shuyo on 18 Aug 2011 at 8:56

GoogleCodeExporter commented 9 years ago
What I mean is, that I'd like to reach list of languages that it supports. It 
is stored in variable langlist, but not accessible from outer code. Instead of 
manually listing all files in profile directory and get their names.

Original comment by liska.jakub on 18 Aug 2011 at 9:46

GoogleCodeExporter commented 9 years ago
Ah, I see.
The current langdetect doesn't have such API.
I'll implement it at the next update.

Original comment by nakatani.shuyo on 19 Aug 2011 at 9:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r100.

Original comment by nakatani.shuyo on 8 Sep 2011 at 10:27

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 28880cd7672f.

Original comment by nakatani.shuyo on 12 Jan 2012 at 9:47