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): ...@@ -21,3 +21,16 @@ def MUSE_preprocessing(input_dict):
return {'tokens': tokens} return {'tokens': tokens}
#end #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