Git Product home page Git Product logo

Comments (1)

may- avatar may- commented on June 7, 2024

Hey,

I am not quite sure whether I could just added these other attributes as left, right file, correct me if I am wrong:

Humm, I don't think my context-wise code suites your case. In my code, all contexts (left, right and middle) look up word embeddings, but in your case, you combine text input ("The fox chase a bunny") with numerical features ("23 , 24000") and categorical features ("high school"). And of course numerical and categorical features don't need word embeddings. So you can't reuse my code, you have to re-implement the layer for your non-textual features, I guess.

BUT how abount source.att? How to decide the values between 0.0 and 1.0?

Yeah, this is a problem, how you get the attention. I derived this from some manual annotation (see: data/gold_annotation.tsv, conversion into 0-1 value: score_reliability function).

But actually, attention values should be jointly learned during training, I mean, should not be given in advance. My attention implementation is fixed, just adds extra info to the loss. So, there are two options: (1) use some fixed manual annotation (like my code, which is not so good...) or (2) implement an attention layer to jointly learn the values (I don't have code for that, but it is desired in the actual sense of "attention")

Sorry, I can't help you for this topics...

from cnn-re-tf.

Related Issues (8)

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.