| | --- |
| | license: mit |
| | language: |
| | - en |
| | - fr |
| | tags: |
| | - code |
| | pretty_name: frwiktionary-20230501-pam-pcre_parsed.db |
| | size_categories: |
| | - 10K<n<100K |
| | --- |
| | # open database: |
| | $:` sqlite3 frwiktionary-20230501-pages-articles-multistream.xml-pcre_parsed.db` |
| |
|
| | # see create table schema |
| | <b>sqlite ></b> ```.schema joined_trans```:<br> |
| | <br> |
| | ```CREATE TABLE `joined_trans` ``` (<br> |
| | ``` `id` integer NOT NULL```<br> |
| | ```, `page_id` integer DEFAULT NULL```<br> |
| | ```, `page_title` varchar(255) DEFAULT NULL```<br> |
| | ```, `rev_id` integer DEFAULT NULL```<br> |
| | ```, `rev_page` integer DEFAULT NULL```<br> |
| | ```, `old_id` integer DEFAULT NULL```<br> |
| | ```, `text_transd` varchar(1255) DEFAULT NULL```<br> |
| | ```);``` |
| |
|
| |
|
| | ## Num rows: |
| | 2,281,460 or more accurately: ```select count(*) from joined_trans where `text_transd` != 'NULL';```:<br> |
| | <b><ul>37010*</ul></b><br> |
| | |
| | *this number which is significantly smaller than an English dictionary which usually has ~>60k words but accounts for the deficiency in words assigned a translation text on the French Wiktionary as described in the paper and it's referenced papers (download from [sci-hib.ee](https://sci-hub.ee/10.1109/i-Society.2016.7854182) to avoid paywall )<br> |
| |
|
| | # Garbled text or query returns no result |
| |
|
| | from a lesson learned, when i imported the Wiktionary data, i used phpmyadmin which on my system had a default collation setting of 'latin_swedish_ci' so to make this demo/data match what's truly in the Wiktionary I'd have to see what the special characters from Wiktionary were mapped to in swedish_ci and replace those strings in my table with their actual special characters after setting collation to utf. More optimally, i could run thru the whole process again from scratch with the correct collation, but why forego the headaches of sorting out utf quirks, parity withstanding ;)<br><br> |
| | |
| | # Example query |
| | |
| | [SELECT * |
| | FROM train |
| | WHERE page_title = 'être' |
| | LIMIT 100;](https://huggingface.co/datasets/cargilcm/frwiktionary/viewer?views%5B%5D=train&sql=SELECT+*+%0AFROM+train+%0AWHERE+page_title+%3D+%27%E2%94%9C%C2%ACtre%27%0ALIMIT+100%3B) [query to view être due to utf/latin_swedish_ci garbling]<br><br> |
| | |
| | I foresee as likely my giving a go at reversing the garbling by string replacing all the erroneous special characters on or before June 1,2026 but as I'm a Dad such types of plans are liable to be derailed; that's my disclaimer but I've dragged my feet publishing this data since i completed it in 2023-2024 and the paper was completed in 2016 so i shall hasten to yield such final product |