luisespinosa
commited on
Commit
•
77783f2
1
Parent(s):
7aa961e
Update README.md
Browse files
README.md
CHANGED
@@ -28,8 +28,8 @@ tokenizer = AutoTokenizer.from_pretrained(MODEL)
|
|
28 |
mapping_link = f"https://raw.githubusercontent.com/cardiffnlp/tweeteval/main/datasets/{task}/mapping.txt"
|
29 |
with urllib.request.urlopen(mapping_link) as f:
|
30 |
html = f.read().decode('utf-8').split("\n")
|
31 |
-
|
32 |
-
labels = [row[1] for row in
|
33 |
|
34 |
# PT
|
35 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|
|
|
28 |
mapping_link = f"https://raw.githubusercontent.com/cardiffnlp/tweeteval/main/datasets/{task}/mapping.txt"
|
29 |
with urllib.request.urlopen(mapping_link) as f:
|
30 |
html = f.read().decode('utf-8').split("\n")
|
31 |
+
csvreader = csv.reader(html, delimiter='\t')
|
32 |
+
labels = [row[1] for row in csvreader if len(row) > 1]
|
33 |
|
34 |
# PT
|
35 |
model = AutoModelForSequenceClassification.from_pretrained(MODEL)
|