Skip to content

Commit

Permalink
Merge pull request #586 from YuukiToriyama/release/v0.2.3
Browse files Browse the repository at this point in the history
release/v0.2.3をmainブランチにマージ
  • Loading branch information
YuukiToriyama authored Jan 22, 2025
2 parents 34e8fdb + c4e286c commit 21abdc3
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-build-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: x86_64
args: --release --out dist --zig
working-directory: python
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: x64
args: --release --out dist
working-directory: python
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: aarch64
args: --release --out dist
working-directory: python
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
command: sdist
args: --out dist
working-directory: python
10 changes: 5 additions & 5 deletions .github/workflows/upload-pypi-org.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: ${{ matrix.platform.target }}
args: --release --out dist --zig
working-directory: python
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: ${{ matrix.platform.target }}
args: --release --out dist
working-directory: python
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
target: ${{ matrix.platform.target }}
args: --release --out dist
working-directory: python
Expand All @@ -114,7 +114,7 @@ jobs:
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
command: sdist
args: --out dist
working-directory: python
Expand All @@ -137,6 +137,6 @@ jobs:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_REPOSITORY: "pypi" # test.pypi.orgにアップロードする際は"testpypi"を設定する
with:
maturin-version: 1.7.8
maturin-version: 1.8.1
command: upload
args: --non-interactive --skip-existing wheels-*/*
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.2.2"
version = "0.2.3"
edition = "2021"
description = "A library for processing addresses of Japan"
repository = "https://github.com/YuukiToriyama/japanese-address-parser"
Expand Down
4 changes: 3 additions & 1 deletion core/src/adapter/orthographical_variant_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ pub enum OrthographicalVariant {
,
,
,
,
}

impl OrthographicalVariant {
Expand All @@ -52,7 +53,7 @@ impl OrthographicalVariant {
崎 => &['崎', '﨑'],
檜 => &['桧', '檜'],
龍 => &['龍', '竜'],
竈 => &['竈', '竃', '釜'],
竈 => &['竈', '竃', '釜', '釡'],
嶋 => &['嶋', '島'],
舘 => &['舘', '館'],
鰺 => &['鰺', '鯵'],
Expand Down Expand Up @@ -84,6 +85,7 @@ impl OrthographicalVariant {
諫 => &['諫', '諌'],
驒 => &['驒', '騨'],
鶯 => &['鶯', '鴬'],
條 => &['條', '条'],
}
}

Expand Down
2 changes: 2 additions & 0 deletions core/src/tokenizer/read_city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ impl Tokenizer<PrefectureNameFound> {
"茨城県" => vec![,],
"東京都" => vec![],
"岐阜県" => vec![],
"大阪府" => vec![],
"兵庫県" => vec![],
"奈良県" => vec![],
"高知県" => vec![],
"福岡県" => vec![],
"長崎県" => vec![],
Expand Down
2 changes: 1 addition & 1 deletion core/src/tokenizer/read_town.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fn find_town(input: &str, candidates: &Vec<String>) -> Option<(String, String)>
let adapter = OrthographicalVariantAdapter {
variant_list: vec![
,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,
,,,,,,,,,,,,,,
],
};
if let Some(result) = adapter.apply(input, candidate) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,17 @@ address,prefecture,city,town,rest
# 岐阜県
岐阜県飛騨市宮川町塩屋104,岐阜県,飛騨市,宮川町塩屋,104
岐阜県飛驒市宮川町塩屋104,岐阜県,飛騨市,宮川町塩屋,104
# 大阪府
大阪府四條畷市中野本町1番1号,大阪府,四條畷市,中野本町,1番1号
大阪府四条畷市中野本町1番1号,大阪府,四條畷市,中野本町,1番1号
# 兵庫県
兵庫県宝塚市売布東の町8-19,兵庫県,宝塚市,売布東の町,8-19
兵庫県宝塚市売布東の町8-19,兵庫県,宝塚市,売布東の町,8-19
兵庫県宝塚市武庫川町1-1,兵庫県,宝塚市,武庫川町,1-1
兵庫県宝塚市武庫川町1-1,兵庫県,宝塚市,武庫川町,1-1
# 奈良県
奈良県五條市岡口1丁目3番1号,奈良県,五條市,岡口一丁目,3番1号
奈良県五条市岡口1丁目3番1号,奈良県,五條市,岡口一丁目,3番1号
# 長崎県
長崎県諫早市東小路町7-1,長崎県,諫早市,東小路町,7-1
長崎県諌早市東小路町7-1,長崎県,諫早市,東小路町,7-1
6 changes: 6 additions & 0 deletions tests/test_data/異字体旧字体への対応.csv
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ address,prefecture,city,town,rest
茨城県龍ケ崎市馴馬町5387,茨城県,龍ヶ崎市,馴馬町,5387
茨城県竜ヶ崎市馴馬町5387,茨城県,龍ヶ崎市,馴馬町,5387
茨城県竜ケ崎市馴馬町5387,茨城県,龍ヶ崎市,馴馬町,5387
# 「龍」と「竜」の表記ゆれへの対応
山梨県甲斐市龍地5141,山梨県,甲斐市,龍地,5141
山梨県甲斐市竜地5141,山梨県,甲斐市,龍地,5141
# 「檜原」「桧原」の表記ゆれへの対応
東京都西多摩郡檜原村上元郷403,東京都,西多摩郡檜原村,上元郷,403
東京都西多摩郡桧原村上元郷403,東京都,西多摩郡檜原村,上元郷,403
Expand Down Expand Up @@ -81,6 +84,9 @@ address,prefecture,city,town,rest
# 「竃」と「竈」の表記ゆれへの対応
静岡県御殿場市竈1032,静岡県,御殿場市,竈,1032
静岡県御殿場市竃1032,静岡県,御殿場市,竈,1032
# 「釜」と「釡」の表記ゆれへの対応
山形県最上郡真室川町大字釜渕923,山形県,最上郡真室川町,大字釜渕,923
山形県最上郡真室川町大字釡渕923,山形県,最上郡真室川町,大字釜渕,923
# 「小曾根」と「小曽根」の表記ゆれへの対応
埼玉県熊谷市小曽根1220,埼玉県,熊谷市,小曽根,1220
埼玉県熊谷市小曾根1220,埼玉県,熊谷市,小曽根,1220
Expand Down

0 comments on commit 21abdc3

Please sign in to comment.