Merge scraped data, append zh-tw language, and export a lookup table. Implemented by pandas.
The language mapping file is exported from project Tos-Translator.
-
Prepare latest language mapping (langmap) files into
langmap
. The langmap files could be exported from Tos-Translator by functionmatcher.export('tw', 'map', output_path / 'langmap')
. -
python langmap_merge.py
: to merge langmap files into single filelangmap/merged.tsv
. -
python dictionary_gen.py
: export lookup table ontooutput/*.json
.