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
20 | 20 |
1. Download zip code data from http://www.post.japanpost.jp/zipcode/download.html
|
21 | 21 |
2. Extract them
|
22 | 22 |
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
|
25 | 26 |
|
26 | 27 |
|
27 | 28 |
-------------------------------------------------------------------------------
|
29 | 29 |
|
30 | 30 |
MAJOR=2
|
31 | 31 |
MINOR=19
|
32 | |
BUILD=2650
|
|
32 |
BUILD=2651
|
33 | 33 |
REVISION=102
|
34 | 34 |
# This version represents the version of Mozc IME engine (converter, predictor,
|
35 | 35 |
# etc.). This version info is included both in the Mozc server and in the Mozc
|
34 | 34 |
Output lines will be printed as utf-8.
|
35 | 35 |
|
36 | 36 |
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
|
39 | 41 |
|
40 | 42 |
Zip code sample input line:
|
41 | 43 |
01101,"060 ","0600007","ホッカイドウ",
|