Code Monkey home page Code Monkey logo

Comments (2)

PPC772 avatar PPC772 commented on June 11, 2024

因为如果我将embeddings设置为None后,效果很差,比起论文差了将近30个点,也没改过源码

我训练这个文件的时候报错了
Traceback (most recent call last):
File "EmoMain.py", line 135, in
main()
File "EmoMain.py", line 84, in main
np_embedding = Utils.load_pretrain(args.d_word_vec, worddict, type='word2vec')
File "C:\Users\ASUS\Desktop\HiGRUs-master\Utils.py", line 140, in load_pretrain
word2vec = load_bin_vec(filename, diadict.word2index)
File "C:\Users\ASUS\Desktop\HiGRUs-master\Utils.py", line 83, in load_bin_vec
with open(filename, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'word2vec300.bin'
请问你们是怎么解决的?谢谢!

from higrus.

wxjiao avatar wxjiao commented on June 11, 2024

@JoeshpCheung @PPC772 Hi,friends_embeddings.pt是根据词表从word2vec或者glove提供的预训练embedding中初始化的,链接分别如下:
wordvec: https://code.google.com/archive/p/word2vec/
glove: https://nlp.stanford.edu/projects/glove/

已在readme中更新,请参考。

from higrus.

Related Issues (6)

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.