Comments (3)
不好意思, 我还想问一下,关于上下文损失的损失函数为什么这样写,还有掩码知识建模的损失函数中,多头注意力机制的输出h指的是什么呜呜呜,这两个公式不太懂
from relphormer.
您好呀!
关于第一个问题,使用文本做初始化是因为我们发现这样模型更好收敛呀。关于初始化的方法,其实是先扩展词表之后让模型去预测每个实体本身的描述,这样能够使图谱里面的每个节点会有一个比较好的初始化特征。
在第二个问题中,子图转换之后的序列是确实是一维的,所以如果直接放到Transformer就损失了结构的信息。因此,这篇论文把子图所包含的结构信息构建了一个邻接矩阵。这个邻接矩阵会作为自注意的偏置项放到Transformer的计算过程中。
from relphormer.
您可以加我的微信 bizhen_zju 有不清楚的地方后续会给您解答
from relphormer.
Related Issues (20)
- What are the main differences between Relphormer and Kgtrransformer HOT 3
- Issue while saving model for Entity Embedding Initialization HOT 4
- BrokenPipe HOT 3
- 链路预测中 HittER 模型在wn18rr数据集上的指标与原文不一致 HOT 6
- conda environment file HOT 2
- triple2seq process HOT 2
- Question about examples. HOT 1
- About entity one-hop generate and fair comparision HOT 5
- 链接预测在FB15k-237数据集上跑出来的MRR比论文中低很多 HOT 8
- 似乎现有的pipeline不能跑通 HOT 3
- 第一步处理完的masked数据中出现了relation中没有的tmethod_of字段 HOT 5
- 请问是不是没有download.sh文件 HOT 4
- requirements.txt文件是空的? HOT 3
- some questions HOT 5
- 关于代码复现与实现中的问题 HOT 10
- 1
- Error: masked_head_neighbor.txt not found - How to reproduce recommendation task HOT 7
- Dependency issues between pytorch-lightning and pyyaml
- 关于数据集 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relphormer.