Skip to content

start_outputs和end_outputs维度问题 #1

Open

Description

@lxgend

self.start_outputs = nn.Linear(config.hidden_size, 2)

请教一下,start_outputs和end_outputs的nn.Linear(config.hidden_size, 2) 中的2,代表什么意思?
我看香农官方的代码,他们又改成了nn.Linear(config.hidden_size, 1)
非常迷惑,烦请解答,谢谢

Activity

  1. Senwang98 commented on Feb 21, 2022

    @Senwang98

    @lxgend
    不知道你后续理解了没,我最近在看ner的工作,这个维度2是ce loss,维度1是为了bce。

    顺便问一下兄弟,官方的代码你复现精度了吗?我感觉跟paper中的结果有差距

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions