chilynn / sequence-labeling

307 stars 167 forks source link

ImportError: No module named models.rnn #23

Open molyswu opened 7 years ago

molyswu commented 7 years ago

Hi: python BILSTM_CRF.py Traceback (most recent call last): File "BILSTM_CRF.py", line 5, in from tensorflow.models.rnn import rnn, rnn_cell ImportError: No module named models.rnn

heshenghuan commented 7 years ago

Check out version of tensorflow on your own PC by shell command python -c "import tensorflow as tf; print tf.__version__".

And Check the API documentation of corresponding version, then replace the wrong import.