jpatel0057 commited on
Commit
029c58a
1 Parent(s): c139e4c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -3
README.md CHANGED
@@ -311,7 +311,6 @@ Dataset is organized by yealry-comments and submissions -- comments-2020, commen
311
  | c/AskWin | 39,308 |
312
 
313
  </details>
314
- <br>
315
 
316
  <details>
317
  <summary> <b> Submission data fields are as following: </b> </summary>
@@ -347,7 +346,6 @@ Dataset is organized by yealry-comments and submissions -- comments-2020, commen
347
  - `post_flair_text` & `post_flair_class`: Similar to Reddit submission flairs, which is a way to tag a submission with a certain keywords.
348
  ```
349
  </details>
350
- <br>
351
 
352
  <details>
353
  <summary> <b> Comments data fields are as following: </b> </summary>
@@ -367,10 +365,34 @@ Dataset is organized by yealry-comments and submissions -- comments-2020, commen
367
  - `is_deleted`
368
  ```
369
  </details>
370
- <br>
371
 
372
  > Read more about the fields and methodology from the [paper](https://arxiv.org/abs/2405.10233).
373
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  # Version
375
 
376
  - **Maintenance Status:** Active
 
311
  | c/AskWin | 39,308 |
312
 
313
  </details>
 
314
 
315
  <details>
316
  <summary> <b> Submission data fields are as following: </b> </summary>
 
346
  - `post_flair_text` & `post_flair_class`: Similar to Reddit submission flairs, which is a way to tag a submission with a certain keywords.
347
  ```
348
  </details>
 
349
 
350
  <details>
351
  <summary> <b> Comments data fields are as following: </b> </summary>
 
365
  - `is_deleted`
366
  ```
367
  </details>
 
368
 
369
  > Read more about the fields and methodology from the [paper](https://arxiv.org/abs/2405.10233).
370
 
371
+ ### Dataset fields Nullability:
372
+
373
+ - If field (column) doesn't have a value, the fields are left with an empty value.
374
+ - For instance, in the case of post deletion as a moderation measure, `title` of submission can have no value.
375
+ - We do not explicit mark value as "Null" for any of the column in our dataset except `embedding` column.
376
+ - Only, embedding column contains explicit "Null" value.
377
+
378
+ For eliminating empty records using `pandas`, the code looks like below:
379
+
380
+ ```python
381
+ # Load dataset for `comments-2020` config
382
+ dataset = load_dataset("iDRAMALab/iDRAMA-scored-2024", name="comments-2020")
383
+ pd_df = dataset["train"].to_pandas()
384
+
385
+ # Remove all empty records based on empty `title` column
386
+ pd_df = pdf_df[pd_df.title != ""]
387
+
388
+ # Remove all records which do not have `author` information
389
+ pd_df = pdf_df[pd_df.author != ""]
390
+
391
+ # Remove all records which do not have generated embeddings
392
+ pd_df = pdf_df[~pd_df.embedding.isna()]
393
+
394
+ ```
395
+
396
  # Version
397
 
398
  - **Maintenance Status:** Active