hieunguyen1053
commited on
Commit
•
ef69456
1
Parent(s):
d5cca0c
Update README.md
Browse files
README.md
CHANGED
@@ -29,6 +29,38 @@ dataset_info:
|
|
29 |
download_size: 15202058
|
30 |
dataset_size: 46041453
|
31 |
---
|
32 |
-
#
|
33 |
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
download_size: 15202058
|
30 |
dataset_size: 46041453
|
31 |
---
|
32 |
+
# XNLI
|
33 |
|
34 |
+
- Source: https://huggingface.co/datasets/anli
|
35 |
+
- Num examples:
|
36 |
+
- 100,459 (train)
|
37 |
+
- 1,200 (validation)
|
38 |
+
- 1,200 (test)
|
39 |
+
- Language: English
|
40 |
+
|
41 |
+
```python
|
42 |
+
from datasets import load_dataset
|
43 |
+
|
44 |
+
load_dataset("vietgpt/anli_r3_en")
|
45 |
+
```
|
46 |
+
|
47 |
+
- Format for NLI task
|
48 |
+
|
49 |
+
```python
|
50 |
+
def preprocess(sample):
|
51 |
+
premise = sample['premise']
|
52 |
+
hypothesis = sample['hypothesis']
|
53 |
+
label = sample['label']
|
54 |
+
|
55 |
+
if label == 0:
|
56 |
+
label = "entailment"
|
57 |
+
elif label == 1:
|
58 |
+
label = "neutral"
|
59 |
+
else:
|
60 |
+
label = "contradiction"
|
61 |
+
return {'text': f'<|startoftext|><|premise|> {premise} <|hypothesis|> {hypothesis} <|label|> {label} <|endoftext|>'}
|
62 |
+
|
63 |
+
"""
|
64 |
+
<|startoftext|><|premise|> TOKYO, Dec 18 (Reuters) - Japan’s Shionogi & Co said on Tuesday that it has applied to health regulators in the United States, Canada and Europe for approval of its HIV drug Dolutegravir. Shionogi developed Dolutegravir with a Viiv Healthcare, an AIDS drug joint venture between GlaxoSmithKline and Pfizer, in exchange for its rights to the drug. <|hypothesis|> The article was written on December 18th. <|label|> entailment <|endoftext|>
|
65 |
+
"""
|
66 |
+
```
|