Code Monkey home page Code Monkey logo

Comments (4)

HussainYa avatar HussainYa commented on July 18, 2024

for the embedding am using ntua_twitter_300.txt.

"embeddings_file": "ntua_twitter_300"

from ntua-slp-semeval2018.

HussainYa avatar HussainYa commented on July 18, 2024

$ 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.

dennis287 avatar dennis287 commented on July 18, 2024

Is there a fix for this? I am currently facing exactly the same issue.

Thanks a lot!

from ntua-slp-semeval2018.

dennis287 avatar dennis287 commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.