New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bern2 local deployment can't query a PMID #15
Comments
Hi, @FCoroado Thanks for reaching out to us.
|
Hi @mjeensung, thanks for the quick reply
|
Thanks for sharing! I modified run_bern2.sh so that the BERN2 log file can be stored. https://github.com/dmis-lab/BERN2/blob/main/scripts/run_bern2.sh And then, please share the log file with me when you face the same error. |
Hi @mjeensung, Thank you! tail -20 nohup_multi_ner.out
tail -20 nohup_gnormplus.out
|
The new log file created in your last commit gave the following message.
|
Hi @mjeensung, I just stopped mongo from running and it is working fine right now! |
Oh, thanks for letting us know! According to this thread, it's due to the incompatibility of the pymongo version. BERN2 is running with pymongo 3.12.0. |
Hi Mujeen,
I work on a project and we are currently developing a biological database
where we connect our type of data (chromosome conformations) to publicly
available data.
We deployed Bern2 locally and are currently parsing all of pubmed papers
ever published.
I was comparing the speed time when we run Bern localy to yours (
http://bern2.korea.ac.kr). Running a pmid in your deployment takes 5ms
while an abstract takes 600ms. When we use our server it also takes around
600ms both for pmid and abstract,
I assume the difference in speed when using pmid is because you have
already parsed the majority of abstracts and you have populated the results
in the bern2_v1_1.pmid collection in mongo? Is there any place where I can
download the dump file?
Thank you. Kind regards,
Francisco Coroado
Mujeen Sung ***@***.***> escreveu no dia segunda, 21/03/2022
à(s) 12:23:
… Closed #15 <#15>.
—
Reply to this email directly, view it on GitHub
<#15 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSMCHE4ARYJEWZ72VYALOTVBBS4DANCNFSM5RBOVRUA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hello! I was testing the local deployment of Bern2 and it seems to work fine when submitting plain text. With PMID I get the following error:
Traceback (most recent call last):
File "", line 1, in
File "", line 2, in query_pmid
File "/Users/franciscos/opt/anaconda3/lib/python3.8/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/Users/franciscos/opt/anaconda3/lib/python3.8/json/init.py", line 357, in loads
return _default_decoder.decode(s)
File "/Users/franciscos/opt/anaconda3/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Users/franciscos/opt/anaconda3/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any idea how I can fix this?
Thanks in advance and thanks for building such a nice tool
The text was updated successfully, but these errors were encountered: