Commit e09fc779 authored by Anze Vavpetic's avatar Anze Vavpetic

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', 'http://vihar.ijs.si:8099')
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