How to add language profile in my own sources?
Closed this issue · 1 comments
dansupriti commented
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:
- git clone git@github.com:shuyo/language-detection.git
- cd language-detection
- mkdir abstracts
- cd abstracts
- wget https://dumps.wikimedia.org/zuwiki/20170301/zuwiki-20170301-abstract.xml
- mkdir profiles
- java -jar ../lib/langdetect.jar --genprofile -d . zu(language ISO code)
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
I am closing this issue as I received answer in shuyo/language-detection#84 (comment)