Skip to content

Commit

Permalink
update: #551: 大阪府における市区町村名の解析処理で「條」と「条」の表記ゆれを考慮する
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Jan 19, 2025
1 parent c19c03c commit a8b8386
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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 Down Expand Up @@ -84,6 +85,7 @@ impl OrthographicalVariant {
諫 => &['諫', '諌'],
驒 => &['驒', '騨'],
鶯 => &['鶯', '鴬'],
條 => &['條', '条'],
}
}

Expand Down
1 change: 1 addition & 0 deletions core/src/tokenizer/read_city.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl Tokenizer<PrefectureNameFound> {
"茨城県" => vec![,],
"東京都" => vec![],
"岐阜県" => vec![],
"大阪府" => vec![],
"兵庫県" => vec![],
"高知県" => vec![],
"福岡県" => vec![],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ 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
Expand Down

0 comments on commit a8b8386

Please sign in to comment.