Comments (2)
感谢您对本项目的关注。PTPCG模型实现的代码在 dee/models/trigger_aware.py/TriggerAwarePrunedCompleteGraph
中,主要继承了 dee/models/lstmmtl2complete_graph.py/LSTMMTL2CompleteGraphModel
。关于用于实体再编码的 span_lstm
和 mention_lstm
,您可以替换成 dee/modules/transformer.py
中的 encoder 模块。对于要素抽取和事件表示,因为用了双向 LSTM 头尾位置表示拼接作为句子表示,您只需要按 Doc2EDAG 一样对全句表示做 max-pooling 即可。
from docee.
好的 老师谢谢您的解答
from docee.
Related Issues (20)
- 预测结果出错 HOT 1
- DueeFin结果讨论 HOT 1
- doc_lang=self.setting.doc_lang报错 HOT 3
- 这个库里面哪些代码是ptpcg这个算法用到的 HOT 29
- 新数据集的训练 HOT 18
- PTPCG 分布式训练的效率 HOT 8
- 关于trigger HOT 3
- 触发词的问题 HOT 10
- 训练 teacher prob 的问题 HOT 7
- wikievents 等英文数据集实验 HOT 23
- ner 这块的问题 HOT 7
- ner 参数设置的问题 HOT 1
- 在计算相似度时是否忽略了实体的相对位置 HOT 1
- Failed to reproduce the result with inference.py HOT 2
- loss weight mismatch
- some doubts HOT 1
- 代码疑似错误 HOT 4
- 请问可以提供各个模型的checkpioint吗? HOT 4
- 怎么加bert模型呢 HOT 3
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 docee.