pub struct BiaffineScoreLogits {
pub head_score_logits: Tensor,
pub relation_score_logits: Tensor,
pub heads: Tensor,
}Expand description
Logits of a biaffine parsing layer.
Fields§
§head_score_logits: TensorHead score logits.
This tensor of shape [batch_size, seq_len, seq_len] contains for every
sentence in the batch the scores for each head, given a dependency. For
instance [s, d, h] is the score for dependent b being attached to
head h in sentence s.
relation_score_logits: TensorThis tensor of shape [batch_size, seq_len, seq_len, n_relations] contains
dependency relation logits. For instance, if in sentence s, h is the head
of d, then [s, d, h] is the a of the corresponding relation logits.
heads: TensorTensor of shape [batch_size, seq_len] with heads found after MST decoding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BiaffineScoreLogits
impl RefUnwindSafe for BiaffineScoreLogits
impl Send for BiaffineScoreLogits
impl !Sync for BiaffineScoreLogits
impl Unpin for BiaffineScoreLogits
impl UnwindSafe for BiaffineScoreLogits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more