yuiseki / crisis-news-map-next

🗺 Source code of https://crisis.yuiseki.net/ . Web service that collects disaster-related news articles and displays them on a map.
https://crisis.yuiseki.net/
Do What The F*ck You Want To Public License
19 stars 3 forks source link

タイの誤判定が多すぎる #2

Closed yuiseki closed 3 years ago

yuiseki commented 3 years ago

以下の単語を含むニュースの位置情報がタイと誤判定されてしまっている

pastak commented 3 years ago

実装見てないのですが、雑に考えるとタイの前後両方にカタカナが無いということを見るとか?(他の地名もニュースの文脈で前後両方にカタカナがくっつくのは直感ではあまり無さそうなので一般化しても良いかも?

hata6502 commented 3 years ago

https://github.com/yuiseki/crisis-news-map-next/blob/main/src/lib/detector.ts#L206 https://github.com/yuiseki/crisis-news-map-next/blob/main/src/data/geonlp.ex.nii.ac.jp/geonlp_world_country_20130912_u.csv

detectCountry() 読んでます。

hata6502 commented 3 years ago

kuromojin という npm パッケージ使うと形態素解析できますが、 ちょっと大がかりな感じ……

https://takuyaa.github.io/kuromoji.js/demo/tokenize.html

Image from Gyazo