Mimino666 / langdetect

Port of Google's language-detection library to Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add a new profile?

halaei opened this issue · comments

I made a profile file. Now how can I use it? There should be some function, which accepts a json file or string and adds it to the profiles.

Problem solved. I imported DetectorFactory and rewrite the init_factory() and detect_langs() inside my project.