allenai / dqa-net

Diagram question answering system described in "A Diagram is Worth a Dozen Images"
Apache License 2.0
38 stars 12 forks source link

AttributeError: 'module' object has no attribute 'ServerProxy' #2

Open SeekPoint opened 7 years ago

SeekPoint commented 7 years ago

mldl@mldlUB1604:~/ub16_prj/dqa-net$ python -m prepro.p05 dumping json files ... done N/A%| |ETA: --:--:--Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "main", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/mldl/ub16_prj/dqa-net/prepro/p05.py", line 493, in prepro_questions(ARGS) File "/home/mldl/ub16_prj/dqa-net/prepro/p05.py", line 323, in prepro_questions sents = [_tokenize(qa2hypo(ques_text, choice, args.qa2hypo, args.qa2hypo_path)) for choice in d['answerTexts']] File "/home/mldl/ub16_prj/dqa-net/prepro/p05.py", line 37, in qa2hypo from qa2hypo import qa2hypo as f File "qa2hypo/qa2hypo.py", line 7, in from helper import File "qa2hypo/helper.py", line 1, in from parser import File "qa2hypo/parser.py", line 10, in server = jsonrpc.ServerProxy(jsonrpc.JsonRpc20(), jsonrpc.TransportTcpIp(addr=("127.0.0.1", 8080))) AttributeError: 'module' object has no attribute 'ServerProxy' mldl@mldlUB1604:~/ub16_prj/dqa-net$

petrbabkin commented 2 years ago

you need to use jsonrpc that comes with stanford-corenlp-python