holylovenia
commited on
Commit
•
cf4145c
1
Parent(s):
cde3436
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -43,25 +43,25 @@ ara, aze, ben, deu, spa, fas, fra, guj, hin, ind, ita, kat, mar, nor, nld, pan,
|
|
43 |
## Supported Tasks
|
44 |
|
45 |
Fact Checking
|
46 |
-
|
47 |
## Dataset Usage
|
48 |
### Using `datasets` library
|
49 |
```
|
50 |
-
|
51 |
-
|
52 |
```
|
53 |
### Using `seacrowd` library
|
54 |
```import seacrowd as sc
|
55 |
# Load the dataset using the default config
|
56 |
-
|
57 |
# Check all available subsets (config names) of the dataset
|
58 |
-
|
59 |
# Load the dataset using a specific config
|
60 |
-
|
61 |
```
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
## Dataset Homepage
|
67 |
|
|
|
43 |
## Supported Tasks
|
44 |
|
45 |
Fact Checking
|
46 |
+
|
47 |
## Dataset Usage
|
48 |
### Using `datasets` library
|
49 |
```
|
50 |
+
from datasets import load_dataset
|
51 |
+
dset = datasets.load_dataset("SEACrowd/x_fact", trust_remote_code=True)
|
52 |
```
|
53 |
### Using `seacrowd` library
|
54 |
```import seacrowd as sc
|
55 |
# Load the dataset using the default config
|
56 |
+
dset = sc.load_dataset("x_fact", schema="seacrowd")
|
57 |
# Check all available subsets (config names) of the dataset
|
58 |
+
print(sc.available_config_names("x_fact"))
|
59 |
# Load the dataset using a specific config
|
60 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
61 |
```
|
62 |
+
|
63 |
+
More details on how to load the `seacrowd` library can be found [here](https://github.com/SEACrowd/seacrowd-datahub?tab=readme-ov-file#how-to-use).
|
64 |
+
|
65 |
|
66 |
## Dataset Homepage
|
67 |
|