Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 741 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 741 Bytes

cedict_parser

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.

Usage

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.

Database Format

Table: Entries

Attribute Type
traditional TEXT
simplified TEXT
pinyin TEXT
english TEXT

Example data:

Attribute Value
traditional
simplified
pinyin gui1
english tortoise/turtle