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 312a7065 authored by vpodpecan's avatar vpodpecan
Browse files

new MUSE v3 widget(s)

parent 0097e083
......@@ -21,3 +21,16 @@ def MUSE_preprocessing(input_dict):
return {'tokens': tokens}
#end
def MUSE_coreference(input_dict):
url = input_dict['url']
tokens = input_dict['tokens']
import socket
socket.setdefaulttimeout(None)
cli = JSONWSPClient(url)
result = cli.coreference(tokens=tokens)
corefs = result.response_dict['result']
return {'coreferences': corefs}
#end
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