guillaumegenthial / tf_ner

Simple and Efficient Tensorflow implementations of NER models with tf.estimator and tf.data
Apache License 2.0
923 stars 275 forks source link

IsADirectoryError: [Errno 21] Is a directory: 'glove.840B.300d.txt' #10

Closed jacob5412 closed 6 years ago

jacob5412 commented 6 years ago

I'm getting the following error when running make build

IsADirectoryError: [Errno 21] Is a directory: 'glove.840B.300d.txt'
make: *** [Makefile:8: build] Error 1
cassianojaeger commented 6 years ago

On build_glove.py line 27, change for this line:

with Path('glove.840B.300d.txt/glove.840B.300d.txt').open() as f:

Take a look at your data folder. A folder called glove.840B.300d.txt is generated with the file glove.840B.300d.txt inside of it. The original code have the wrong path.

Source: https://github.com/guillaumegenthial/tf_ner/pull/4