Kartmaan commited on
Commit
3d6eb61
·
verified ·
1 Parent(s): 55c6064

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -3
README.md CHANGED
@@ -41,7 +41,7 @@ This dataset is published under **CC BY-SA 4.0**, in accordance with the license
41
 
42
  | File | Format | Size | Best suited for |
43
  |---|---|---|---|
44
- | `french_dict.db` | SQLite 3 | ~270 MB | Desktop apps, real-time search, SQL queries |
45
  | `french_dict.parquet` | Parquet (zstd) | ~22 MB | Data science, ML pipelines, Pandas / PyArrow |
46
 
47
  Both files contain the same data. The format difference reflects a deliberate trade-off between query performance and compression efficiency.
@@ -57,6 +57,7 @@ Both files contain the same data. The format difference reflects a deliberate tr
57
  | Distinct word forms | 895,090 |
58
  | Includes conjugated forms | ✅ Yes |
59
  | Definitions | ✅ Yes |
 
60
  | Usage examples | ✅ Yes |
61
  | Register tags | ✅ Yes (familier, vieux, littéraire…) |
62
  | Semantic tags | ✅ Yes (figuré, par extension…) |
@@ -76,6 +77,7 @@ CREATE TABLE mots (
76
  forme TEXT NOT NULL, -- lowercase word form (search key)
77
  pos TEXT, -- part of speech
78
  definitions TEXT NOT NULL -- JSON-serialized array of definitions
 
79
  );
80
 
81
  CREATE INDEX idx_forme ON mots(forme);
@@ -158,6 +160,7 @@ The Parquet file flattens the nested JSON structure into **one row per definitio
158
  |---|---|---|
159
  | `forme` | string | Lowercase word form |
160
  | `pos` | category | Part of speech (N, V, ADJ…) |
 
161
  | `def_index` | int16 | Definition index within the lexeme (1-based) |
162
  | `sub_index` | Int16 | Sub-definition index (null for top-level definitions) |
163
  | `gloss` | string | Definition text |
@@ -217,6 +220,10 @@ french_dict.db (270 MB) ✅
217
 
218
  french_dict.parquet (22 MB) ✅
219
  ```
 
 
 
 
220
 
221
  **Key implementation choices:**
222
  - `iterparse` with `elem.clear()` after each `<entry>` to keep memory usage flat
@@ -238,5 +245,6 @@ french_dict.parquet (22 MB) ✅
238
  **CC BY-SA 4.0** — derived from the French Wiktionary via WiktionaryX.
239
  You are free to use, share, and adapt this dataset for any purpose, provided you give appropriate credit and distribute any derivative works under the same license.
240
 
241
- - Original source: French Wiktionary https://fr.wiktionary.org
242
- - WiktionaryX parser: Franck Sajous http://redac.univ-tlse2.fr/lexiques/wiktionaryx.html
 
 
41
 
42
  | File | Format | Size | Best suited for |
43
  |---|---|---|---|
44
+ | `french_dict.db` | SQLite 3 | ~280 MB | Desktop apps, real-time search, SQL queries |
45
  | `french_dict.parquet` | Parquet (zstd) | ~22 MB | Data science, ML pipelines, Pandas / PyArrow |
46
 
47
  Both files contain the same data. The format difference reflects a deliberate trade-off between query performance and compression efficiency.
 
57
  | Distinct word forms | 895,090 |
58
  | Includes conjugated forms | ✅ Yes |
59
  | Definitions | ✅ Yes |
60
+ | Gender | ✅ Yes |
61
  | Usage examples | ✅ Yes |
62
  | Register tags | ✅ Yes (familier, vieux, littéraire…) |
63
  | Semantic tags | ✅ Yes (figuré, par extension…) |
 
77
  forme TEXT NOT NULL, -- lowercase word form (search key)
78
  pos TEXT, -- part of speech
79
  definitions TEXT NOT NULL -- JSON-serialized array of definitions
80
+ gender TEXT DEFAULT NULL -- gender ("m" - "f" - "e" - "NULL")
81
  );
82
 
83
  CREATE INDEX idx_forme ON mots(forme);
 
160
  |---|---|---|
161
  | `forme` | string | Lowercase word form |
162
  | `pos` | category | Part of speech (N, V, ADJ…) |
163
+ | `gender` | category | Gender of the noun (m, f, e, NULL) |
164
  | `def_index` | int16 | Definition index within the lexeme (1-based) |
165
  | `sub_index` | Int16 | Sub-definition index (null for top-level definitions) |
166
  | `gloss` | string | Definition text |
 
220
 
221
  french_dict.parquet (22 MB) ✅
222
  ```
223
+ **Note** : The addition of grammatical genders to the french_dict.db file was achieved through a data
224
+ merging process with a French lexical database. This reference dataset was retrieved from
225
+ lexique.org and originates from the OpenLexicon project, which is distributed under the
226
+ CC BY-SA 4.0 LICENSE.
227
 
228
  **Key implementation choices:**
229
  - `iterparse` with `elem.clear()` after each `<entry>` to keep memory usage flat
 
245
  **CC BY-SA 4.0** — derived from the French Wiktionary via WiktionaryX.
246
  You are free to use, share, and adapt this dataset for any purpose, provided you give appropriate credit and distribute any derivative works under the same license.
247
 
248
+ - Original source: French Wiktionary - https://fr.wiktionary.org
249
+ - WiktionaryX parser: Franck Sajous - http://redac.univ-tlse2.fr/lexiques/wiktionaryx.html
250
+ - OpenLexicon (for adding the gender of nouns) - https://openlexicon.fr/