Datasets:

Modalities:
Text
Formats:
json
Languages:
English
Size:
< 1K
Libraries:
Datasets
Dask
License:
sergioburdisso commited on
Commit
0fef5e7
·
verified ·
1 Parent(s): 1e8fc75

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -9,7 +9,7 @@ It allows easy loading as dialog objects via `Dialog.from_file()`.
9
 
10
  ## How to use
11
 
12
- First, download the dataset from the Hugging Face Hub to a local directory (e.g., `"datasets"`):
13
 
14
  ```python
15
  from huggingface_hub import snapshot_download
@@ -17,7 +17,7 @@ from huggingface_hub import snapshot_download
17
  snapshot_download(
18
  repo_id="sdialog/Primock-57",
19
  repo_type="dataset",
20
- local_dir="datasets",
21
  )
22
  ```
23
 
@@ -26,7 +26,7 @@ Then, load the dataset as `Dialog` objects:
26
  ```python
27
  from sdialog import Dialog
28
 
29
- primock57_dialogs = Dialog.from_file("datasets/Primock-57/")
30
  print("Number of dialogs:", len(primock57_dialogs))
31
 
32
  # Pretty-print the first dialog
@@ -38,7 +38,7 @@ You can also load an individual dialog by specifying its file path directly:
38
  ```python
39
  from sdialog import Dialog
40
 
41
- consultation01_dialog = Dialog.from_file("datasets/Primock-57/day1_consultation01_conversation.json")
42
  consultation01_dialog.print()
43
  ```
44
 
 
9
 
10
  ## How to use
11
 
12
+ First, download the dataset from the Hugging Face Hub to a local directory (e.g., `"Primock-57"`):
13
 
14
  ```python
15
  from huggingface_hub import snapshot_download
 
17
  snapshot_download(
18
  repo_id="sdialog/Primock-57",
19
  repo_type="dataset",
20
+ local_dir="Primock-57",
21
  )
22
  ```
23
 
 
26
  ```python
27
  from sdialog import Dialog
28
 
29
+ primock57_dialogs = Dialog.from_file("Primock-57/")
30
  print("Number of dialogs:", len(primock57_dialogs))
31
 
32
  # Pretty-print the first dialog
 
38
  ```python
39
  from sdialog import Dialog
40
 
41
+ consultation01_dialog = Dialog.from_file("Primock-57/day1_consultation01_conversation.json")
42
  consultation01_dialog.print()
43
  ```
44