Comments (7)
@Tian312 I've used this commands to obtain punkt
model and it worked.
>>> import nltk
>>> nltk.download('punkt')
from pico_parser.
Hi @miladnouriezade the bugs have been solved in the latest version. You can try to run example input in BERT-based parser following the instruction.
from pico_parser.
Hi @miladnouriezade, thanks for your interests in this project. This could be caused by the potential mismatch between the BERT BPE tokenizer and parser's tokenizer in some special cases of the text. Some abstracts work and others containing certain structure of text don't. I'm trying to fix it, meanwhile you can try different abstract text of your own.
from pico_parser.
Hi @Tian312 I've tried your new update in BERT Parser today but I've got nothing except exceptionlist.txt
.
Here is my output
Loading customized config and text tokenizer...
ln: QuickUMLS: File exists
WARNING:tensorflow:Estimator's model_fn (<function model_fn_builder.<locals>.model_fn at 0x133a22730>) includes params argument, but params are not passed to Estimator.
WARNING:tensorflow:eval_on_tpu ignored because use_tpu is False.
Start parsing PICO elements.
Saved all parsing results in test/json3
from pico_parser.
@miladnouriezade could you change the line 795 try:
to if 1==1:
and comment out the line 792-793 except:
for run_bluebert_ner_predict.py
, run it again and paste the error message here?
from pico_parser.
@Tian312 Hi again, I did what you said, Here is the error:
Loading customized config and text tokenizer...
ln: QuickUMLS: File exists
WARNING:tensorflow:Estimator's model_fn (<function model_fn_builder.<locals>.model_fn at 0x128add730>) includes params argument, but params are not passed to Estimator.
WARNING:tensorflow:eval_on_tpu ignored because use_tpu is False.
Start parsing PICO elements.
Traceback (most recent call last):
File "run_bluebert_ner_predict.py", line 801, in <module>
main()
File "run_bluebert_ner_predict.py", line 765, in main
predict_examples = processor.get_pred_examples(input_file)
File "run_bluebert_ner_predict.py", line 266, in get_pred_examples
self._read_data(self.txt2conll(data_dir)), "test")
File "run_bluebert_ner_predict.py", line 185, in txt2conll
sents = sent_tokenize(raw_text)
File "/Users/miladnourizade/anaconda3/envs/PICO_Parser/lib/python3.6/site-packages/nltk/tokenize/__init__.py", line 106, in sent_tokenize
tokenizer = load("tokenizers/punkt/{0}.pickle".format(language))
File "/Users/miladnourizade/anaconda3/envs/PICO_Parser/lib/python3.6/site-packages/nltk/data.py", line 752, in load
opened_resource = _open(resource_url)
File "/Users/miladnourizade/anaconda3/envs/PICO_Parser/lib/python3.6/site-packages/nltk/data.py", line 877, in _open
return find(path_, path + [""]).open()
File "/Users/miladnourizade/anaconda3/envs/PICO_Parser/lib/python3.6/site-packages/nltk/data.py", line 585, in find
raise LookupError(resource_not_found)
LookupError:
**********************************************************************
Resource punkt not found.
Please use the NLTK Downloader to obtain the resource:
>>> import nltk
>>> nltk.download('punkt')
For more information see: https://www.nltk.org/data.html
Attempted to load tokenizers/punkt/PY3/english.pickle
Searched in:
- '/Users/miladnourizade/nltk_data'
- '/Users/miladnourizade/anaconda3/envs/PICO_Parser/nltk_data'
- '/Users/miladnourizade/anaconda3/envs/PICO_Parser/share/nltk_data'
- '/Users/miladnourizade/anaconda3/envs/PICO_Parser/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- ''
**********************************************************************
from pico_parser.
i am unable to get tensorflow 1.0 can you help me out please.
from pico_parser.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pico_parser.