Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coref.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def forward(self, spans, g_i, mention_scores):

# Batch and softmax
# get the softmax of the scores for each span in the document given
probs = [F.softmax(tensr) for tensr in with_epsilon]
probs = [F.softmax(tensr, dim=0) for tensr in with_epsilon]

# pad the scores for each one with a dummy value, 1000 so that the tensors can
# be of the same dimension for calculation loss and what not.
Expand Down