Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
mauryaland committed May 30, 2024
1 parent 4519f90 commit 7161b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flair/models/sequence_tagger_utils/viterbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def decode(
return tags, all_tags

def _all_scores_for_token(
self, scores: torch.Tensor, tag_sequences: torch.IntTensor, lengths: torch.IntTensor, sentences: List[Sentence]
self, scores: torch.Tensor, tag_sequences: torch.Tensor, lengths: torch.IntTensor, sentences: List[Sentence]
):
"""Returns all scores for each tag in tag dictionary."""
scores = scores.numpy()
Expand Down

0 comments on commit 7161b1b

Please sign in to comment.