openai / deeptype

Code for the paper "DeepType: Multilingual Entity Linking by Neural Type System Evolution"
https://arxiv.org/abs/1802.01021
Other
647 stars 147 forks source link

ModuleNotFoundError: No module named 'wikidata_linker_utils.conlleval' #14

Closed karimvision closed 6 years ago

karimvision commented 6 years ago

file conlleval.py missing while running train type

(karim_py3) ubuntu@ip-10-0-5-31:/mnt/big_drive/deeptype$ CUDA_VISIBLE_DEVICES=0 python3 learning/train_type.py my_config.json --cudnn --fused --hidden_sizes 200 200 --batch_size 256 --max_epochs 10000  --name TypeClassifier --weight_noise 1e-6  --save_dir my_great_model  --anneal_rate 0.9999
/home/ubuntu/.virtualenvs/karim_py3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
Traceback (most recent call last):
  File "learning/train_type.py", line 20, in <module>
    from wikidata_linker_utils.conlleval import (
ModuleNotFoundError: No module named 'wikidata_linker_utils.conlleval'
mtmvu commented 6 years ago

I didn't run the script yet but looks like those imports are unused so you can try to comment them and see if the script runs properly.

karimvision commented 6 years ago

thanks, thats what i did, working fine

JonathanRaiman commented 6 years ago

Sorry -- old file used for the NER experiments. Removing that import is the right thing to do.