Final version classification with transformer
This commit is contained in:
parent
6ad8ba24ba
commit
cf933ff698
5272
dev-0/out.tsv
Normal file
5272
dev-0/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,7 @@ class CustomDataset(torch.utils.data.Dataset):
|
|||||||
|
|
||||||
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
||||||
|
|
||||||
model_path = "model/checkpoint-1500"
|
model_path = "model/checkpoint-18500"
|
||||||
model = BertForSequenceClassification.from_pretrained(model_path, num_labels=2)
|
model = BertForSequenceClassification.from_pretrained(model_path, num_labels=2)
|
||||||
|
|
||||||
trainer = Trainer(model)
|
trainer = Trainer(model)
|
||||||
|
5152
test-A/out.tsv
Normal file
5152
test-A/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
289579
train/out.tsv
Normal file
289579
train/out.tsv
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user