Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube :

Commit e09fc779 authored by Anze Vavpetic's avatar Anze Vavpetic
Browse files

bugfix: wrong web service was being called for nlp definition extraction by patterns

parent 635ce76f
......@@ -95,8 +95,8 @@ def nlp_def_extraction_patterns(input_dict):
wsdl = input_dict.get('wsdl', '')
ws = WebService(wsdl, 60000)
pattern = input_dict['pattern']
response = ws.client.GlossaryExtractionByWnet(corpus=annotations,
lang=lang, pattern=pattern)
response = ws.client.GlossaryExtractionByPatterns(corpus=annotations,
lang=lang, pattern=pattern)
return {'sentences': response['candidates']}
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