Skip to content

Loss calculation problem #21

@onlyzer0

Description

@onlyzer0

Hello, the MtetaQA-kb code only outputs one entity with the highest probability. For questions with multiple entity answers, is this way of calculating the answer incomplete?

scores, idx = torch.max(e_score, dim = 1) # [bsz], [bsz]
match_score = torch.gather(answers, 1, idx.unsqueeze(-1)).squeeze().tolist()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions