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}
def MUSE_coreference(input_dict):
url = input_dict['url']
tokens = input_dict['tokens']
import socket
cli = JSONWSPClient(url)
result = cli.coreference(tokens=tokens)
corefs = result.response_dict['result']
return {'coreferences': corefs}
Supports Markdown
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