Codebase list mozc / ed4a62b
Update usage comment about gen_zip_code_seed.py With f130f2493d3abda10348f99828b77ce186d71458, it's now more obvious that we have to specify PYTHONPATH when calling our python script directly. BUG=#391 TEST= REF_BUG=32281113 REF_CL=137020326 REF_TIME=2016-10-24T06:05:10-07:00 REF_TIME_RAW=1477314310 -0700 Yohei Yukawa 7 years ago
3 changed file(s) with 8 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2020 1. Download zip code data from http://www.post.japanpost.jp/zipcode/download.html
2121 2. Extract them
2222 3. Update zip_code_seed.tsv by
23 ../../dictionary/gen_zip_code_seed.py \
24 --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
23 PYTHONPATH="${PYTHONPATH}:../../" \
24 python ../../dictionary/gen_zip_code_seed.py \
25 --zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
2526
2627
2728 -------------------------------------------------------------------------------
2929
3030 MAJOR=2
3131 MINOR=19
32 BUILD=2650
32 BUILD=2651
3333 REVISION=102
3434 # This version represents the version of Mozc IME engine (converter, predictor,
3535 # etc.). This version info is included both in the Mozc server and in the Mozc
3434 Output lines will be printed as utf-8.
3535
3636 usage:
37 ./gen_zip_code_seed.py --zip_code=zip_code.csv --jigyosyo=jigyosyo.csv
38 > zip_code_seed.tsv
37 PYTHONPATH="${PYTHONPATH}:<Mozc's src root dir>" \
38 python ./gen_zip_code_seed.py \
39 --zip_code=zip_code.csv --jigyosyo=jigyosyo.csv \
40 > zip_code_seed.tsv
3941
4042 Zip code sample input line:
4143 01101,"060 ","0600007","ホッカイドウ",