holylovenia
commited on
Commit
•
1957c5b
1
Parent(s):
e7c1a53
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -196,25 +196,25 @@ aaz, abx, ace, acn, agn, agt, ahk, akb, alj, alp, amk, aoz, atb, atd, att, ban,
|
|
196 |
## Supported Tasks
|
197 |
|
198 |
Sentiment Analysis
|
199 |
-
|
200 |
## Dataset Usage
|
201 |
### Using `datasets` library
|
202 |
```
|
203 |
-
|
204 |
-
|
205 |
```
|
206 |
### Using `seacrowd` library
|
207 |
```import seacrowd as sc
|
208 |
# Load the dataset using the default config
|
209 |
-
|
210 |
# Check all available subsets (config names) of the dataset
|
211 |
-
|
212 |
# Load the dataset using a specific config
|
213 |
-
|
214 |
```
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
|
219 |
## Dataset Homepage
|
220 |
|
|
|
196 |
## Supported Tasks
|
197 |
|
198 |
Sentiment Analysis
|
199 |
+
|
200 |
## Dataset Usage
|
201 |
### Using `datasets` library
|
202 |
```
|
203 |
+
from datasets import load_dataset
|
204 |
+
dset = datasets.load_dataset("SEACrowd/unisent", trust_remote_code=True)
|
205 |
```
|
206 |
### Using `seacrowd` library
|
207 |
```import seacrowd as sc
|
208 |
# Load the dataset using the default config
|
209 |
+
dset = sc.load_dataset("unisent", schema="seacrowd")
|
210 |
# Check all available subsets (config names) of the dataset
|
211 |
+
print(sc.available_config_names("unisent"))
|
212 |
# Load the dataset using a specific config
|
213 |
+
dset = sc.load_dataset_by_config_name(config_name="<config_name>")
|
214 |
```
|
215 |
+
|
216 |
+
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).
|
217 |
+
|
218 |
|
219 |
## Dataset Homepage
|
220 |
|