LuKrO commited on
Commit
50fedd5
·
1 Parent(s): 50cb626

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -4
README.md CHANGED
@@ -48,11 +48,18 @@ from datasets import load_dataset
48
  ds = load_dataset("se2p/code-readability-merged")
49
  ```
50
 
 
 
 
 
 
 
 
51
  The dataset is structured as follows:
52
 
53
- ```python
54
  {
55
- "code_snippet": ..., # Java source code snippet.
56
  "score": ... # Readability score
57
  }
58
  ```
@@ -86,8 +93,6 @@ The code_snippet (string) is the code snippet that was rated in a study by multi
86
  Those could answer based on a five point Likert scale, with 1 being very unreadable and 5 being very readable.
87
  The score (float) is the averaged rating score of all participants between 1.0 (very unreadable) and 5.0 (very readable).
88
 
89
- The snippets are **not** split into train and test (and validation) set.
90
-
91
  ## Dataset Creation
92
 
93
  ### Curation Rationale
 
48
  ds = load_dataset("se2p/code-readability-merged")
49
  ```
50
 
51
+ The snippets are **not** split into train and test (and validation) set. Thus, the whole dataset is in the **train** set:
52
+ ```python
53
+ ds = ds['train']
54
+ ds_as_list = ds.to_list() # Convert the dataset to whatever format suits you best
55
+
56
+ ```
57
+
58
  The dataset is structured as follows:
59
 
60
+ ```json
61
  {
62
+ "code_snippet": ..., # Java source code snippet
63
  "score": ... # Readability score
64
  }
65
  ```
 
93
  Those could answer based on a five point Likert scale, with 1 being very unreadable and 5 being very readable.
94
  The score (float) is the averaged rating score of all participants between 1.0 (very unreadable) and 5.0 (very readable).
95
 
 
 
96
  ## Dataset Creation
97
 
98
  ### Curation Rationale