Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -142,25 +142,25 @@ ifa, ace, btm, mqj, mbs, nbq, gor, zyp, tbl, kjp, kmk, kqe, ptu, blw, ceb, prf,
|
|
| 142 |
## Supported Tasks
|
| 143 |
|
| 144 |
Language Identification
|
| 145 |
-
|
| 146 |
## Dataset Usage
|
| 147 |
### Using `datasets` library
|
| 148 |
```
|
| 149 |
-
|
| 150 |
-
|
| 151 |
```
|
| 152 |
### Using `seacrowd` library
|
| 153 |
```import seacrowd as sc
|
| 154 |
# Load the dataset using the default config
|
| 155 |
-
|
| 156 |
# Check all available subsets (config names) of the dataset
|
| 157 |
-
|
| 158 |
# Load the dataset using a specific config
|
| 159 |
-
|
| 160 |
```
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
|
| 165 |
## Dataset Homepage
|
| 166 |
|
|
|
|
| 142 |
## Supported Tasks
|
| 143 |
|
| 144 |
Language Identification
|
| 145 |
+
|
| 146 |
## Dataset Usage
|
| 147 |
### Using `datasets` library
|
| 148 |
```
|
| 149 |
+
from datasets import load_dataset
|
| 150 |
+
dset = datasets.load_dataset("SEACrowd/lti_langid_corpus", trust_remote_code=True)
|
| 151 |
```
|
| 152 |
### Using `seacrowd` library
|
| 153 |
```import seacrowd as sc
|
| 154 |
# Load the dataset using the default config
|
| 155 |
+
dset = sc.load_dataset("lti_langid_corpus", schema="seacrowd")
|
| 156 |
# Check all available subsets (config names) of the dataset
|
| 157 |
+
print(sc.available_config_names("lti_langid_corpus"))
|
| 158 |
# Load the dataset using a specific config
|
| 159 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
| 160 |
```
|
| 161 |
+
|
| 162 |
+
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).
|
| 163 |
+
|
| 164 |
|
| 165 |
## Dataset Homepage
|
| 166 |
|