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

renamed some def. ex. widgets, updated the default web service address

parent 9b1d78aa
......@@ -92,7 +92,7 @@
"fields": {
"category": 1,
"treeview_image": "treeview/nlp_2.png",
"name": "Term Candidates Viewer",
"name": "Term candidates viewer",
"is_streaming": false,
"uid": "af5ee96e-7307-46f9-8d8c-55cb7c36d111",
"interaction_view": "",
......@@ -182,7 +182,7 @@
"name": "Web service address",
"short_name": "ws",
"uid": "717b9e76-f0df-4f77-8edb-846f09226503",
"default": "http://vihar.ijs.si:8094",
"default": "http://vihar.ijs.si:8099",
"required": false,
"multi": false,
"parameter_type": "text",
......@@ -446,7 +446,7 @@
"fields": {
"category": 35,
"treeview_image": "",
"name": "Definition Extraction by Patterns",
"name": "Definition extraction by patterns",
"is_streaming": false,
"uid": "87ad3c66-160a-48d9-b922-37bfc9f773d6",
"interaction_view": "",
......@@ -492,7 +492,7 @@
"name": "Web service address",
"short_name": "ws",
"uid": "9d817240-a951-460e-84db-b46ae503cdfb",
"default": "http://vihar.ijs.si:8094",
"default": "http://vihar.ijs.si:8099",
"required": false,
"multi": false,
"parameter_type": "text",
......@@ -607,7 +607,7 @@
"fields": {
"category": 35,
"treeview_image": "",
"name": "Definition Extraction by Terms",
"name": "Definition extraction by terms",
"is_streaming": false,
"uid": "5c7768f9-4449-469b-bae1-f56e9e48be34",
"interaction_view": "",
......@@ -653,7 +653,7 @@
"name": "Web service address",
"short_name": "ws",
"uid": "d717986e-e906-4599-bc07-0c772078dc8d",
"default": "http://vihar.ijs.si:8094",
"default": "http://vihar.ijs.si:8099",
"required": false,
"multi": false,
"parameter_type": "text",
......@@ -924,7 +924,7 @@
"fields": {
"category": 35,
"treeview_image": "",
"name": "Definition Extraction by WordNet",
"name": "Definition extraction by wordnet",
"is_streaming": false,
"uid": "27273666-764d-458d-9513-0715ba2e6b4d",
"interaction_view": "",
......@@ -970,7 +970,7 @@
"name": "Web service address",
"short_name": "ws",
"uid": "a9fc6cb8-53fe-4977-8c34-29347b274548",
"default": "http://vihar.ijs.si:8094",
"default": "http://vihar.ijs.si:8099",
"required": false,
"multi": false,
"parameter_type": "text",
......@@ -1037,7 +1037,7 @@
"fields": {
"category": 35,
"treeview_image": "treeview/nlp.png",
"name": "Merge Sentences",
"name": "Merge sentences",
"is_streaming": false,
"uid": "de403444-0ae6-470a-bd7e-f86ac289bf98",
"interaction_view": "",
......@@ -1142,7 +1142,7 @@
"fields": {
"category": 35,
"treeview_image": "treeview/nlp_1.png",
"name": "Sentence Viewer",
"name": "Sentence viewer",
"is_streaming": false,
"uid": "94485ea5-f1d6-46ae-abaf-fd78988692fd",
"interaction_view": "",
......
......@@ -88,7 +88,7 @@ def nlp_def_extraction_patterns(input_dict):
'''
annotations = input_dict['annotations']
lang = input_dict['lang']
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8094')
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8099')
ws = WebService(wsdl, 60000)
pattern = input_dict['pattern']
response = ws.client.GlossaryExtractionByWnet(corpus=annotations,
......@@ -103,7 +103,7 @@ def nlp_def_extraction_terms(input_dict):
annotations = input_dict['annotations']
term_candidates = input_dict['term_candidates']
lang = input_dict['lang']
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8094')
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8099')
terms_per_sentence = input_dict['terms_per_sentence']
nominatives = input_dict['nominatives']
threshold = input_dict['threshold']
......@@ -126,7 +126,7 @@ def nlp_def_extraction_wnet(input_dict):
'''
annotations = input_dict['annotations']
lang = input_dict['lang']
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8094')
wsdl = input_dict.get('wsdl', 'http://vihar.ijs.si:8099')
ws = WebService(wsdl, 60000)
response = ws.client.GlossaryExtractionByWnet(corpus=annotations, lang=lang)
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