Code Monkey home page Code Monkey logo

Comments (6)

qibinc avatar qibinc commented on August 25, 2024

Hi @AbnerCode ,

Thanks a lot for being interested in this work and checking out the code!

Question 1

No, we use the second encoder to encode retrieved knowledge. As the baseline model doesn't incorporate external knowledge, there is only one encoder – title encoder.

Question 2

For KOBE, condition_context_attn is not used in transformer.py, but used in tensor2tensor.py. Make sure you have the latest code. See:

contexts = self.encoder.condition_context_attn(contexts, knowledge_contexts, mask)

from kobe.

AbnerCode avatar AbnerCode commented on August 25, 2024

Hi @qibinc ,

It is such an honor to hear from you.
image
So, as you say, you only use the title encoder as your baseline, which does not use the BiAttention. Is it like this?

from kobe.

qibinc avatar qibinc commented on August 25, 2024

Hi @AbnerCode ,

The above figure displays the architecture of KOBE.

For baseline, which is without the knowledge encoder, looks like this:

image

Best,
Qibin Chen

from kobe.

AbnerCode avatar AbnerCode commented on August 25, 2024

Hi @qibinc ,

Thanks for your reply!
In addition, I wanna know why you use the 2 layer transformer as the decoder. Generally, the layer is set as 6.

Best wishes!

from kobe.

qibinc avatar qibinc commented on August 25, 2024

Hi @AbnerCode ,

In addition, I wanna know why you use the 2 layer transformer as the decoder. Generally, the layer is set as 6.

Please check out #13. It mentions the same problem.

from kobe.

AbnerCode avatar AbnerCode commented on August 25, 2024

Hi @qibinc ,

Thanks!

Best Wishes

from kobe.

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.