Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分地址未能解析(2024.5.23) #212

Closed
saogedangransao opened this issue May 23, 2024 · 2 comments
Closed

部分地址未能解析(2024.5.23) #212

saogedangransao opened this issue May 23, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@saogedangransao
Copy link

**
目前在做地理解析的是后有部分城市识别不出来
例子:
1、吉林省吉林----期望结果---》吉林省吉林市
2、新疆巴音郭楞---期望结果---》新疆维吾尔族自治区巴音郭楞蒙古自治州
**

上述两个例子中,例子1中无法识别第二个吉林,例子2中的【巴音郭楞】未能解析出【巴音郭楞蒙古自治州】
**

  1. 版本(Version):
  • python 版本:3.12.2
  • jionlp 版本: '1.5.11'
  1. jionlp的调用代码与输入文本(Code & Text):
df["市"] = df["地址"].apply(
    lambda x: jio.parse_location(x, town_village=True, change2new=True)["city"]
)
df["省"] = df["地址"].apply(
    lambda x: jio.parse_location(x, town_village=True, change2new=True)["province"]
)
@saogedangransao saogedangransao added the bug Something isn't working label May 23, 2024
@saogedangransao saogedangransao changed the title [BUG] 部分地址未能解析(2024.5.23) May 23, 2024
@dongrixinyu
Copy link
Owner

吉林省吉林有问题。必须得加市,否则是歧义。巴音郭楞修复了

@saogedangransao
Copy link
Author

saogedangransao commented Oct 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants