luisespinosa commited on
Commit
aa7cb4c
1 Parent(s): c3f0011

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -29,8 +29,8 @@ labels=[]
29
  mapping_link = f"https://raw.githubusercontent.com/cardiffnlp/tweeteval/main/datasets/{task}/mapping.txt"
30
  with urllib.request.urlopen(mapping_link) as f:
31
  html = f.read().decode('utf-8').split("\n")
32
- spamreader = csv.reader(html[:-1], delimiter='\t')
33
- labels = [row[1] for row in spamreader]
34
 
35
  # PT
36
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)
 
29
  mapping_link = f"https://raw.githubusercontent.com/cardiffnlp/tweeteval/main/datasets/{task}/mapping.txt"
30
  with urllib.request.urlopen(mapping_link) as f:
31
  html = f.read().decode('utf-8').split("\n")
32
+ csvreader = csv.reader(html, delimiter='\t')
33
+ labels = [row[1] for row in csvreader if len(row) > 1]
34
 
35
  # PT
36
  model = AutoModelForSequenceClassification.from_pretrained(MODEL)