Code Monkey home page Code Monkey logo

Comments (3)

qixiaonan1 avatar qixiaonan1 commented on July 19, 2024

不好意思, 我还想问一下,关于上下文损失的损失函数为什么这样写,还有掩码知识建模的损失函数中,多头注意力机制的输出h指的是什么呜呜呜,这两个公式不太懂

from relphormer.

bizhen46766 avatar bizhen46766 commented on July 19, 2024

您好呀!
关于第一个问题,使用文本做初始化是因为我们发现这样模型更好收敛呀。关于初始化的方法,其实是先扩展词表之后让模型去预测每个实体本身的描述,这样能够使图谱里面的每个节点会有一个比较好的初始化特征。
在第二个问题中,子图转换之后的序列是确实是一维的,所以如果直接放到Transformer就损失了结构的信息。因此,这篇论文把子图所包含的结构信息构建了一个邻接矩阵。这个邻接矩阵会作为自注意的偏置项放到Transformer的计算过程中。

from relphormer.

bizhen46766 avatar bizhen46766 commented on July 19, 2024

您可以加我的微信 bizhen_zju 有不清楚的地方后续会给您解答

from relphormer.

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.