Open molyswu opened 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
Check out version of tensorflow on your own PC by shell command python -c "import tensorflow as tf; print tf.__version__".
python -c "import tensorflow as tf; print tf.__version__"
And Check the API documentation of corresponding version, then replace the wrong import.
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