Code Monkey home page Code Monkey logo

Comments (3)

 avatar commented on August 23, 2024

Hi @tongjinle123 , you're right about fine tuning the unknown_word vectors. The paper suggests learning the unknown word vectors and we should do it.
I am just not too sure what the most elegant way to do this is in tensorflow. I am open to suggestions so if anyone has a brilliant idea to do this please let me know. Or even better, pull request!

Problem:
We want to fix word embeddings but fine-tune 1 word vector for token "Unk" (token for all unknown words). We only look up with 1 word embeddings vector which makes partial training difficult.

from qanet.

tongjinle123 avatar tongjinle123 commented on August 23, 2024
To be frankly, i am wondering if keeping the pre-trained matrix freezed is reasonable.I think that no one could ensure the matrix is well trained for our task. Why not taking a second train?

Could you please share a paper,artical or experiment which is talking about this problem with me?
When it comes to the way to the implemention, i had a mind-storm-thought that define pre-trained matrix and unk matrix separately using tf.get_variable, run a concat op before trainop and run a assign op after trainop assigning the unk value to the unk matrix. I think that will not consume much time.

sorry for the bad comment format.... QAQ

from qanet.

 avatar commented on August 23, 2024

Refer to #13 for this issue.

from qanet.

Related Issues (20)

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.