nreimers commited on
Commit
3953bb4
1 Parent(s): 944f440

label as int

Browse files
Files changed (4) hide show
  1. .gitattributes +0 -0
  2. prepare.py +1 -1
  3. test.jsonl +2 -2
  4. train.jsonl +2 -2
.gitattributes CHANGED
File without changes
prepare.py CHANGED
@@ -20,7 +20,7 @@ for field in ["target", "severe_toxicity", "obscene", "identity_attack", "insult
20
 
21
 
22
  rows = [{'text': row['comment_text'].strip(),
23
- 'label': "1" if row['target'] >= 0.5 else "0",
24
  'label_text': "toxic" if row['target'] >= 0.5 else "not toxic",
25
  } for idx, row in df.iterrows()]
26
 
 
20
 
21
 
22
  rows = [{'text': row['comment_text'].strip(),
23
+ 'label': 1 if row['target'] >= 0.5 else 0,
24
  'label_text': "toxic" if row['target'] >= 0.5 else "not toxic",
25
  } for idx, row in df.iterrows()]
26
 
test.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f80a5e9054ecc5fd7d99851cef78b0fa07c98a6115579959741c6fdac999e3a3
3
- size 17646214
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b827bccd4c56e5e18ddf4c55fb410d37f661c15eb2b43aa250a933b6f4452254
3
+ size 17546214
train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c1de45c04fad47923459bedae2df2ec37d01583402a8cf73078a76b821a0c4e6
3
- size 620588757
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea49834e61fb6e265be2c7944dfbd379aea82b0661628384534442b9a0f8ed15
3
+ size 617079009