GiliGold commited on
Commit
2c3ce8e
·
verified ·
1 Parent(s): d486cb0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -29,3 +29,20 @@ size_categories:
29
  - **Arousal** quantifies the intensity of an emotion, from calm to excited on a scale from 0 to 1.
30
 
31
  - **Dominance** represents the degree of control conveyed by a word, from submissive to dominant on a scale from 0 to 1.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  - **Arousal** quantifies the intensity of an emotion, from calm to excited on a scale from 0 to 1.
30
 
31
  - **Dominance** represents the degree of control conveyed by a word, from submissive to dominant on a scale from 0 to 1.
32
+
33
+ ## Usage
34
+
35
+ After dowloading and extracting jsonl file from here: https://huggingface.co/datasets/GiliGold/VAD_KnessetCorpus/tree/main
36
+ ```python
37
+ vad_shard_path = "train\women_rights_vad_shards_bzip2_files\vad_shard_0.jsonl" #adjust path accordingly
38
+
39
+ with open(vad_shard_path, encoding="utf-8") as vad_file:
40
+ for line in vad_file:
41
+ sentence_entity = json.loads(line)
42
+ sentence_text = sentence_entity["sentence_text"]
43
+ v = sentence_entity["vad_values"]["valence"]
44
+ a = sentence_entity["vad_values"]["arousal"]
45
+ d = sentence_entity["vad_values"]["dominance"]
46
+ print(f'sentence text: {sentence_text}')
47
+ print(f'valence value is: {v}')
48
+ ```