Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungXiyuan authored Oct 15, 2019
1 parent a0c3c21 commit 0e793a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mulrel_ranker.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def forward(self, token_ids, tok_mask, entity_ids, entity_mask, p_e_m, mtype, et
# input()

# Typing Feature
inputs = torch.cat([sim[indx].view(n_cands, -1),
inputs = torch.cat([sim[indx].view(n_cands, -1) if not basemodel == 'deeped' else local_ent_scores[indx].view(n_cands, -1),
#local_ent_scores[indx].view(n_cands, -1),
torch.log(p_e_m[indx] + 1e-20).view(n_cands, -1), ent_coherence.view(n_cands, -1),
tm[indx].view(n_cands, -1),
Expand Down

0 comments on commit 0e793a6

Please sign in to comment.