We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a1a72 commit 37d0634Copy full SHA for 37d0634
src/cnlpt/train_system.py
@@ -309,7 +309,10 @@ def main(
309
dataset.tasks_to_labels[task] = dataset.tasks_to_labels[task][1:] + [
310
dataset.tasks_to_labels[task][0]
311
]
312
- labels = dataset.processed_dataset["train"][task]
+ if tagger[task]:
313
+ labels = [token_label for sent in dataset.processed_dataset["train"][task] for token_label in sent.split()]
314
+ else:
315
+ labels = dataset.processed_dataset["train"][task]
316
weights = []
317
label_counts = Counter(labels)
318
for label in dataset.tasks_to_labels[task]:
0 commit comments