label as int
Browse files- .gitattributes +0 -0
- prepare.py +1 -1
- test.jsonl +2 -2
- 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':
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 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:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea49834e61fb6e265be2c7944dfbd379aea82b0661628384534442b9a0f8ed15
|
| 3 |
+
size 617079009
|