Skip to content

Instantly share code, notes, and snippets.

@abc873693
Created February 19, 2019 02:26
Show Gist options
  • Save abc873693/c50665591de536c179dc756fda0f3b7d to your computer and use it in GitHub Desktop.
Save abc873693/c50665591de536c179dc756fda0f3b7d to your computer and use it in GitHub Desktop.
python system.py train self True True
Using TensorFlow backend.
--------------------------------------------------
Loading word list...
word list : 39504
--------------------------------------------------
Load lexicons...
AFINN lexicon : 3474
Sentiment140 lexicon : 62468
Sentistrength lexicon : 2674
Vader lexicon : 7500
--------------------------------------------------
Loading Data...
Padding sequences...
train18 data : (1181, 99)
trainAll data : (43167, 99)
dev data : (449, 99)
test data : (937, 99)
Score Train : (1181, 99, 4)
Score TrainAll : (43167, 99, 4)
Score Dev : (449, 99, 4)
Score Test : (937, 99, 4)
--------------------------------------------------
Loading Label...
--------------------------------------------------
Loading word vectors...
word vectors : 462282
dimintion of word vectors : 400
--------------------------------------------------
word embedding...
embedding_matrix : (39505, 400)
--------------------------------------------------
input to embedding...
shape of train18 : (1181, 99, 404)
Traceback (most recent call last):
File "system.py", line 314, in <module>
XTrain = word_embedding(XTrain, ScoreTrain, EMBEDDING_DIM, LexiconsFeatures)
File "system.py", line 308, in word_embedding
a=np.asarray(a)
File "/home/rainvisitor/.local/lib/python2.7/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
MemoryError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment