zaghaghi / drqa-webui Goto Github PK
View Code? Open in Web Editor NEWDrQA Web UI
License: Other
DrQA Web UI
License: Other
For some reason the server won't run.
I changed the data directory in services/init.py as well as tokenizer = 'corenlp'
with timeout set to 1000, drqa loads but then an error pops up for the timeout is finished.
`
Process ForkPoolWorker-32:
Traceback (most recent call last):
File "/home/redact/testWebUI/lib/python3.6/site-packages/pexpect/expect.py", line 99, in expect_loop
incoming = spawn.read_nonblocking(spawn.maxread, timeout)
File "/home/redact/lib/python3.6/site-packages/pexpect/pty_spawn.py", line 462, in read_nonblocking
raise TIMEOUT('Timeout exceeded.')
pexpect.exceptions.TIMEOUT: Timeout exceeded.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/python3.6/multiprocessing/pool.py", line 103, in worker
initializer(*initargs)
File "/home/redact/testWebUI/drqa/pipeline/drqa.py", line 39, in init
PROCESS_TOK = tokenizer_class(**tokenizer_opts)
File "/home/domainproxy/redact/drqa/tokenizers/corenlp_tokenizer.py", line 33, in init
self._launch()
File "/home/redact/testWebUI/drqa/tokenizers/corenlp_tokenizer.py", line 61, in _launch
self.corenlp.expect_exact('NLP>', searchwindowsize=100)
File "/home/redact/testWebUI/lib/python3.6/site-packages/pexpect/spawnbase.py", line 390, in expect_exact
return exp.expect_loop(timeout)
File "/home/domainproxy/redact/lib/python3.6/site-packages/pexpect/expect.py", line 107, in expect_loop
return self.timeout(e)
File "/home/redact/testWebUI/lib/python3.6/site-packages/pexpect/expect.py", line 70, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: Timeout exceeded.
<pexpect.pty_spawn.spawn object at 0x7f9936f446d8>
command: /bin/bash
args: ['/bin/bash']
buffer (last 100 chars): b'0;domainproxy@hostcomp: /redact/webUICode\x07domainproxy@hostcomp:/redact/webUICode$ '
before (last 100 chars): b'0;domainproxy@hostcomp: /redact/webUICode\x07domainproxy@hostcomp:/redact/webUICode$ '
after: <class 'pexpect.exceptions.TIMEOUT'>
match: None
match_index: None
exitstatus: None
flag_eof: False
pid: 27958
child_fd: 47
closed: False
timeout: 60
delimiter: <class 'pexpect.exceptions.EOF'>
logfile: None
logfile_read: None
logfile_send: None
maxread: 100000
ignorecase: False
searchwindowsize: None
delaybeforesend: 0
delayafterclose: 0.1
delayafterterminate: 0.1
searcher: searcher_string:
0: "b'NLP>'"
`
Any help is appreciated
File "/Users/ajmd/code/gitrep/drqa-webui/index.py", line 5, in <module>
from services import DrQA, process
File "/Users/ajmd/code/gitrep/drqa-webui/services/__init__.py", line 49, in <module>
embedding_file=config['embedding-file'],
File "/Users/ajmd/code/gitrep/DrQA/drqa/pipeline/drqa.py", line 127, in __init__
tok_class = tokenizers.get_class(tokenizer)
File "/Users/ajmd/code/gitrep/DrQA/drqa/tokenizers/__init__.py", line 33, in get_class
return SpacyTokenizer
NameError: name 'SpacyTokenizer' is not defined
I can't seem to get this working on the most recent version of DrQA. when the server is started, it goes through the steps of loading up the DrQA system but gets stuck on the "[ Initializing tokenizers and document retrievers... ]" step. There are no error.
Any help would be appreciated.
Thanks!
File "/Users/pelumioladokun/Documents/API/DrQA/WebUI/drqa-webui/index.py", line 5, in <module> from services import DrQA, process File "/Users/pelumioladokun/Documents/API/DrQA/WebUI/drqa-webui/services/__init__.py", line 48, in <module> tokenizer=config['tokenizer'] File "/Users/pelumioladokun/Documents/API/DrQA/DrQA/drqa/pipeline/drqa.py", line 109, in __init__ self.ranker = ranker_class(**ranker_opts) File "/Users/pelumioladokun/Documents/API/DrQA/DrQA/drqa/retriever/tfidf_doc_ranker.py", line 41, in __init__ self.tokenizer = tokenizers.get_class(metadata['tokenizer'])() TypeError: 'NoneType' object is not callable
can't seem to get around this issue, please help I am using Spacy tokenizer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.