mehran commited on
Commit
bd0d127
1 Parent(s): 6335deb

Adding details to the card

Browse files
Files changed (1) hide show
  1. README.md +87 -1
README.md CHANGED
@@ -1 +1,87 @@
1
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ size_categories:
4
+ - 10B<n<100B
5
+ multilinguality:
6
+ - monolingual
7
+ source_datasets:
8
+ - OSCAR (fa)
9
+ - CommonCrawl
10
+ - Leipzig
11
+ - VOA Persian
12
+ - Persian poems corpus
13
+ - Web to Corpus
14
+ - TEP: Tehran English-Persian parallel corpus
15
+ task_categories:
16
+ - fill-mask
17
+ - text-generation
18
+ task_ids:
19
+ - language-modeling
20
+ language:
21
+ - fa
22
+ pretty_name: Jomleh
23
+ ---
24
+
25
+ # Dataset Card for "jomleh"
26
+
27
+ ## Dataset Summary
28
+
29
+ "Jomleh" is a high-quality Farsi language dataset consisting of sentences that have been carefully preprocessed to ensure they contain only Farsi characters and no contamination from other languages. The data has been sourced from multiple sources and undergone a deduplication process to ensure that each sentence is unique. While the text in the dataset is not original, the focus on quality over quantity ensures that each sentence is useful and informative. Each sample in "Jomleh" is a sentence, making it a valuable resource for natural language processing tasks and language modeling.
30
+
31
+ ## Source Data
32
+
33
+ The data used to curate Jomleh is taken from the following sources:
34
+
35
+ - OSCAR (fa)
36
+ - CommonCrawl
37
+ - Leipzig
38
+ - VOA Persian
39
+ - Persian poems corpus
40
+ - Web to Corpus
41
+ - TEP: Tehran English-Persian parallel corpus
42
+
43
+ ## Layout and Structure
44
+
45
+ The dataset is composed of 60 json-line files. As the samples are spread across these files randomly (uniform), the number of samples per each file is not an exact number but generally speaking, there are roughly an equal number of samples per each file.
46
+
47
+ Each line of a file is a sample formatted in JSON with the following layout:
48
+
49
+ ```json
50
+ {
51
+ "id": <integer>,
52
+ "text": "<A Farsi sentence>",
53
+ "source": "<One of the aformentioned sources>"
54
+ }
55
+ ```
56
+
57
+ ## Data curation process
58
+
59
+ The value of this dataset is its preprocessing of the text. The main struggle working with Farsi text is the fact that due to some historical challenges, there are so many different codings out there used to save Farsi text. On top of that, you can add the complexity of dealing with multiple character codes for the same letter. In Farsi, the look of a character depends on its neighbouring characters. For example, consider the final letter of Farsi alphabet "Ye":
60
+
61
+ It has a standalone shape:
62
+
63
+ <pre><font size="7">&#64508;</font></pre>
64
+
65
+ But when surronded with other characters, its middle form is used:
66
+
67
+ <pre><font size="7">&#64511;</font></pre>
68
+
69
+ This requirement is taken care of by "fonts' substitution table" feature. Which will help show the correct form of the words. But at the same time, some text don't rely on the fonts and use the specific code defined for the middle form directly. From the reader point of the view, both will look identical but printing the code, you'll have different numbers. This complicates text processing in Farsi since we need to identify each character with a unique code regardless of their position in the word. On top of that, add the problem of using Arabic characters to type Farsi text. Again, since the two languages share very similar alphabets, one can successfully read a text in Farsi while it's been typed by Arabic characters since they look very similar in shape.
70
+
71
+ To address these problems, the preprocessing used in Jomle tries its best to map all the different characters that look alike to the Farsi counterpart. This is not an exact science but based on the best effort.
72
+
73
+ The same could be said about digits and punctuations.
74
+
75
+ At the end, any character that can be found in the Jomleh dataset is either:
76
+
77
+ - a Farsi alphabet letter (`آ` to `ی`)
78
+ - a Farsi digit (`۱` to `۰`)
79
+ - a Zero-width non-joiner (`\u200c`)
80
+ - a Space
81
+ - a Dot/period (`.`)
82
+ - an exclamation mark (`!`)
83
+ - a Farsi question mark (`؟`)
84
+ - a Farsi comma (`،`)
85
+
86
+ Any other character found in the text is eliminated based on best effort and if the elimination of such characters could harm the integrity and the meaning of the sentence, then that sentence is removed from the dataset altogether.
87
+