fix tokenizer load issue when rerun the example
#10
by
colzy
- opened
README.md
CHANGED
@@ -62,6 +62,8 @@ labels = [row[1] for row in csvreader if len(row) > 1]
|
|
62 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
63 |
model.save_pretrained(MODEL)
|
64 |
|
|
|
|
|
65 |
text = "Good night ๐"
|
66 |
text = preprocess(text)
|
67 |
encoded_input = tokenizer(text, return_tensors='pt')
|
|
|
62 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
63 |
model.save_pretrained(MODEL)
|
64 |
|
65 |
+
tokenizer.save_pretrained(MODEL)
|
66 |
+
|
67 |
text = "Good night ๐"
|
68 |
text = preprocess(text)
|
69 |
encoded_input = tokenizer(text, return_tensors='pt')
|