You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is for future reference, for anyone working off of this model's edge score outputs.
There is a semantic naming bug in the dependency decoder that actually switches the head_arc_representation and child_arc_representation and the weights that compute them.
The code that computes the arc logits in dependency_decoder.py is:
This looks like attended_arcs (shape batch_size, sent_len, sent_len) is a tensor of scores with attended_arcs[b,i,j] representing the score for an arc from i to j (head->child). The rest of the code, however, uses this tensor as if it were child->head, so the tensors are in effect transposed. This also implies that the weights,head_arc_feedforward and child_arc_feedforward, are named backwards.
This causes no performance bugs for udify itself, but if you use the outputs of the model arc scores for something else, you need to transpose these scores to get them to be actually head->child.
The text was updated successfully, but these errors were encountered:
This is for future reference, for anyone working off of this model's edge score outputs.
There is a semantic naming bug in the dependency decoder that actually switches the
head_arc_representation
andchild_arc_representation
and the weights that compute them.The code that computes the arc logits in
dependency_decoder.py
is:This looks like
attended_arcs
(shapebatch_size, sent_len, sent_len
) is a tensor of scores withattended_arcs[b,i,j]
representing the score for an arc from i to j (head->child
). The rest of the code, however, uses this tensor as if it werechild->head
, so the tensors are in effect transposed. This also implies that the weights,head_arc_feedforward
andchild_arc_feedforward
, are named backwards.This causes no performance bugs for udify itself, but if you use the outputs of the model arc scores for something else, you need to transpose these scores to get them to be actually
head->child
.The text was updated successfully, but these errors were encountered: