A small Python script for converting CC-CEDICT text file into a SQLite database. Sample data obtained from the MDBG website, and licensed under Creative Commons Attribution-Share Alike 3.0.
python cedict_parser.py path_to_cedict_text_file path_to_db_to_create_(optional)
If no database file name is given, it defaults to cedict.db.
Table: Entries
| Attribute | Type |
|---|---|
| traditional | TEXT |
| simplified | TEXT |
| pinyin | TEXT |
| english | TEXT |
Example data:
| Attribute | Value |
|---|---|
| traditional | 龜 |
| simplified | 龟 |
| pinyin | gui1 |
| english | tortoise/turtle |