Tian312 / PICO_Parser

A clinical BERT-based NLP tool for parsing clinical trial abstracts following the PICO framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TENSORFLOW PROBLEM

CatalinaZ16 opened this issue · comments

Hi!

I've already installed the requirements but if I try to run the example I have the next error:

'tensorflow' has no attribute 'flags'

Loading customized config and text tokenizer...
2020-11-10 21:26:21.042753: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-11-10 21:26:21.042783: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
ln: failed to create symbolic link 'QuickUMLS': File exists
Traceback (most recent call last):
File "run_bluebert_ner_predict.py", line 34, in
flags = tf.flags
AttributeError: module 'tensorflow' has no attribute 'flags'

How can I solve that problem?

@CatalinaZ16 did you install the tensorflow or tensorflow-gpu?
If you don't use GPU, i would suggest to try install tensorflow-1.15.0 first for running it. If you do want to use GPU, you probably need to check the compatibility between the versions of your CUDA driver and the tensorflow-gpu .

Hello!

It already works. Thank you.

Regards.