Commit 1aa7f732 authored by c24b's avatar c24b

load_tagger

parent fa1a268e
......@@ -269,10 +269,10 @@ def load_tagger(lang):
lang(str) > Tagger(Object)
'''
filename = LANGUAGES[lang]
filename = LANGUAGES[lang]["tagger"]
module = 'gargantext.util.taggers.%s' %(filename)
module = importlib.import_module(module)
return getattr(module)
return getattr(module, filename)
# linguistic extraction parameters ---------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment