Comments (4)
for the embedding am using ntua_twitter_300.txt.
"embeddings_file": "ntua_twitter_300"
from ntua-slp-semeval2018.
$ python -m model.pretraining.sentiment2017
Running on:cpu
loading word embeddings...
Didn't find embeddings cache file ntua/embeddings/ntua_twitter_300.txt
Indexing file ntua/embeddings/ntua_twitter_300.txt ...
{300, 310}
Found 804871 word vectors.
Traceback (most recent call last):
File "opt/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main "main", mod_spec)
File "opt/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals)
File "ntua/model/pretraining/sentiment2017.py", line 41, in monitor="val", label_transformer=transformer)
File "ntua/utils/train.py", line 276, in define_trainer word2idx, idx2word, embeddings = load_embeddings(_config)
File "ntua/utils/train.py", line 109, in load_embeddings return load_word_vectors(word_vectors, word_vectors_size)
File "ntua/utils/load_embeddings.py", line 93, in load_word_vectors embeddings = numpy.array(embeddings, dtype='float32')
ValueError: setting an array element with a sequence.
from ntua-slp-semeval2018.
Is there a fix for this? I am currently facing exactly the same issue.
Thanks a lot!
from ntua-slp-semeval2018.
I found out the problem myself. The reason why I got this error was because of the fact that I was using a newer version of numpy than v1.13.1, which is listed in requirements.txt. I hope this helps!
from ntua-slp-semeval2018.
Related Issues (16)
- prediction of Task 3
- How to train and evaluate the TASK2_A?
- IndexError: tuple index out of range
- Which average Jaccard I should use?
- Full Documentation of Source Code
- How to trained the ntu_310 that has 10 affective embedding?
- Could someone tell me which version of python and cuda did you use please? Thanks very much!
- problems with ekphrasis HOT 5
- code examples of training and a sample for prediction
- models are not saved HOT 1
- predict_models only shows two results for each dataset
- code takes longer to pre process trian data HOT 1
- Pretraining Getting Stuck HOT 4
- Error when training the model for Task2A HOT 2
- Testing working setup does not work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntua-slp-semeval2018.