optimaize / language-detector

Language Detection Library for Java
Apache License 2.0
567 stars 165 forks source link

How to add language profile in my own sources? #73

Closed dansupriti closed 7 years ago

dansupriti commented 7 years ago

Could you please help me with the steps to follow to add a new language profile in my own sources I followed the steps mentioned in https://github.com/optimaize/language-detector/wiki/Creating-Language-Profiles But I am getting null pointer exception in LanguageProfileBuilder.build() and I am using version 0.6 though it's showing LanguageProfileBuilder as deprecated class? Followed the below steps to generate new language profile:

Now zu language profile is with me, but how can add new language profile as training text. Need your help and suggestion. Thanking you in advance.

dansupriti commented 7 years ago

I am closing this issue as I received answer in https://github.com/shuyo/language-detection/issues/84#issuecomment-315774577