Skip to content

Commit

Permalink
type formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
teresaloeffelhardt authored and helpmefindaname committed Jun 14, 2024
1 parent dac9c5c commit a2b3da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flair/datasets/sequence_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -4927,12 +4927,12 @@ def _load_noisy_labels(cls, version, base_path) -> List[str]:
return labels

@classmethod
def _process_noisy_labels(cls, rdcd_features, labels) -> List[str]:
def _process_noisy_labels(cls, rdcd_features, labels) -> List[List[str]]:
instances = []
label_idx = 0
for feature in rdcd_features:
if len(feature) == 0:
instances.append("")
instances.append([""])
else:
assert label_idx < len(labels)
instance = [feature[0], labels[label_idx]]
Expand Down

0 comments on commit a2b3da6

Please sign in to comment.