zjc0516 / language-detection

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

How to reinstantiate the Detector object? #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

I have tried to create new instance but seems to me that the detector can only 
be used once and i have to clean and build the program. 
Could you pinpoint me to the right direction as how to create the new instance 
of tehe detector?

Thanks very much.

Original issue reported on code.google.com by jkoe...@gmail.com on 5 May 2011 at 4:46

GoogleCodeExporter commented 8 years ago
Did you use DetectorFactory.create() for the instantiation?
Another detection needs new Detector instance by calling 
DetectorFactory.create().

Original comment by nakatani.shuyo on 6 May 2011 at 3:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have managed to solve the issue. THe problem is that you can only load the
profile once.
Also make sure you put the profile folder in the working directory.

cheers.

Original comment by jkoe...@gmail.com on 14 Aug 2011 at 4:13

GoogleCodeExporter commented 8 years ago
I'm glad to hear you solved your problem.
thanks.

Original comment by nakatani.shuyo on 15 Aug 2011 at 3:34