Création d'un compte pour un collaborateur extérieur au laboratoire depuis l'intranet ICube : https://intranet.icube.unistra.fr/fr/labs/member/profile

Commit 838db641 authored by Anze Vavpetic's avatar Anze Vavpetic
Browse files

swapnil naslov servisa za load corpus

parent d554731c
...@@ -36,6 +36,6 @@ def load_corpus(input_dict): ...@@ -36,6 +36,6 @@ def load_corpus(input_dict):
f = safeOpen(input_dict['file']) f = safeOpen(input_dict['file'])
fname = os.path.basename(input_dict['file']) fname = os.path.basename(input_dict['file'])
data = base64.b64encode(f.read()) data = base64.b64encode(f.read())
ws = WebService('http://bodysnatcher.ijs.si:8092/totale?wsdl', 600) ws = WebService('http://vihar.ijs.si:8095/totale?wsdl', 60000)
response = ws.client.parseFile(fileName=fname, inFile=data) response = ws.client.parseFile(fileName=fname, inFile=data)
return {'corpus' : response['parsedFile']} return {'corpus' : response['parsedFile']}
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