charlesashby / entity-sentiment-analysis

Various ops for handling several entities in a document, perform anaphora resolution, clustering, etc.
12 stars 2 forks source link

checkpoints for CharLSTM bidirectional LSTM #2

Open monajalal opened 6 years ago

monajalal commented 6 years ago

Can you please share the checkpoints for bidirectional LSTM?

[jalal@goku entity-sentiment-analysis]$ python parse_doc.py 
Traceback (most recent call last):
  File "parse_doc.py", line 181, in <module>
    m= get_sentiment(text, network)
NameError: name 'text' is not defined
[jalal@goku entity-sentiment-analysis]$ vi main.py 
[jalal@goku entity-sentiment-analysis]$ vi parse_doc.py 
[jalal@goku entity-sentiment-analysis]$ python parse_doc.py 
Parsing Document...
Tokenizing sentences...
Done!
Anaphora resolution for sentence: Mona is a good girl, Mina is a fantastic mom
Done!
Named Entity Clustering:
Mona is a good girl , Mina is a fantastic mom
Mina is a fantastic mom
Done!
2018-04-19 20:30:46.221636: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2018-04-19 20:30:46.221678: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2018-04-19 20:30:46.221725: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
2018-04-19 20:30:46.221736: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
2018-04-19 20:30:46.221747: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Loading model /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm...
2018-04-19 20:30:46.260149: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.260703: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.260857: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.261428: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.262068: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.262486: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.262990: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.263635: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.263907: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.264407: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.264878: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.265591: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.265858: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.266291: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.266862: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.267117: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.267434: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.267968: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.268255: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.268480: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.269303: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.269404: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.269884: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
2018-04-19 20:30:46.270019: W tensorflow/core/framework/op_kernel.cc:1152] Not found: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
Traceback (most recent call last):
  File "parse_doc.py", line 181, in <module>
    m= get_sentiment(text, network)
  File "parse_doc.py", line 158, in get_sentiment
    predictions = network.predict_sentences(sentences)
  File "/scratch2/debate_tweets/sentiment/CharLSTM/lib_model/bidirectional_lstm.py", line 287, in predict_sentences
    saver.restore(sess, SAVE_PATH)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1457, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 778, in run
    run_metadata_ptr)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 982, in _run
    feed_dict_string, options, run_metadata)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1032, in _do_run
    target_list, options, run_metadata)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1052, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
     [[Node: save/RestoreV2_11 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_11/tensor_names, save/RestoreV2_11/shape_and_slices)]]

Caused by op u'save/RestoreV2_11', defined at:
  File "parse_doc.py", line 181, in <module>
    m= get_sentiment(text, network)
  File "parse_doc.py", line 158, in get_sentiment
    predictions = network.predict_sentences(sentences)
  File "/scratch2/debate_tweets/sentiment/CharLSTM/lib_model/bidirectional_lstm.py", line 283, in predict_sentences
    saver = tf.train.Saver()
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1056, in __init__
    self.build()
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1086, in build
    restore_sequentially=self._restore_sequentially)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 691, in build
    restore_sequentially, reshape)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 407, in _AddRestoreOps
    tensors = self.restore_op(filename_tensor, saveable, preferred_shard)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 247, in restore_op
    [spec.tensor.dtype])[0])
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/ops/gen_io_ops.py", line 669, in restore_v2
    dtypes=dtypes, name=name)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 768, in apply_op
    op_def=op_def)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2336, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1228, in __init__
    self._traceback = _extract_stack()

NotFoundError (see above for traceback): Unsuccessful TensorSliceReader constructor: Failed to find any matching files for /scratch2/debate_tweets/sentiment/CharLSTM/checkpoints/bidirectional_lstm
     [[Node: save/RestoreV2_11 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_11/tensor_names, save/RestoreV2_11/shape_and_slices)]]

[jalal@goku entity-sentiment-analysis]$