chujiezheng / CoMAE

Codes and data for the ACL 2021-Findings paper: CoMAE: A Multi-factor Hierarchical Framework for Empathetic Response Generation
39 stars 6 forks source link

infer #5

Closed zzcceeyy closed 3 years ago

zzcceeyy commented 3 years ago

您好,我想咨询以下两个问题,就是关于论文部分在源码的具体位置: 1.L = Lnll+LA +LC +L E, 1628477674(1)

2.使用上下文最后位置的隐藏状态,Hx = Hx[1]∈Rd,来分层预测目标响应的CM、DA和EM。

1628477691(1)

chujiezheng commented 3 years ago
  1. https://github.com/chujiezheng/CoMAE/blob/f007f3b3f1865d78a0c41a463136718207779af5/codes/framework/comae/comae.py#L241
  2. https://github.com/chujiezheng/CoMAE/blob/f007f3b3f1865d78a0c41a463136718207779af5/codes/framework/comae/comae.py#L77
  3. https://github.com/chujiezheng/CoMAE/blob/f007f3b3f1865d78a0c41a463136718207779af5/codes/framework/comae/comae.py#L121
  4. https://github.com/chujiezheng/CoMAE/blob/f007f3b3f1865d78a0c41a463136718207779af5/codes/framework/comae/comae.py#L153