mirror of
https://github.com/mii443/mozc.git
synced 2025-08-22 16:15:46 +00:00
Update usage comment about gen_zip_code_seed.py
With f130f2493d
, 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
This commit is contained in:
@ -21,8 +21,9 @@ You can add zip code dictionary by follows:
|
|||||||
1. Download zip code data from http://www.post.japanpost.jp/zipcode/download.html
|
1. Download zip code data from http://www.post.japanpost.jp/zipcode/download.html
|
||||||
2. Extract them
|
2. Extract them
|
||||||
3. Update zip_code_seed.tsv by
|
3. Update zip_code_seed.tsv by
|
||||||
../../dictionary/gen_zip_code_seed.py \
|
PYTHONPATH="${PYTHONPATH}:../../" \
|
||||||
--zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
|
python ../../dictionary/gen_zip_code_seed.py \
|
||||||
|
--zip_code=KEN_ALL.CSV --jigyosyo=JIGYOSYO.CSV >> dictionary09.txt
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
MAJOR=2
|
MAJOR=2
|
||||||
MINOR=19
|
MINOR=19
|
||||||
BUILD=2650
|
BUILD=2651
|
||||||
REVISION=102
|
REVISION=102
|
||||||
# This version represents the version of Mozc IME engine (converter, predictor,
|
# This version represents the version of Mozc IME engine (converter, predictor,
|
||||||
# etc.). This version info is included both in the Mozc server and in the Mozc
|
# etc.). This version info is included both in the Mozc server and in the Mozc
|
||||||
|
@ -35,8 +35,10 @@
|
|||||||
Output lines will be printed as utf-8.
|
Output lines will be printed as utf-8.
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
./gen_zip_code_seed.py --zip_code=zip_code.csv --jigyosyo=jigyosyo.csv
|
PYTHONPATH="${PYTHONPATH}:<Mozc's src root dir>" \
|
||||||
> zip_code_seed.tsv
|
python ./gen_zip_code_seed.py \
|
||||||
|
--zip_code=zip_code.csv --jigyosyo=jigyosyo.csv \
|
||||||
|
> zip_code_seed.tsv
|
||||||
|
|
||||||
Zip code sample input line:
|
Zip code sample input line:
|
||||||
01101,"060 ","0600007","ホッカイドウ",
|
01101,"060 ","0600007","ホッカイドウ",
|
||||||
|
Reference in New Issue
Block a user