Python解析地址中省市区街道

Python解析地址中省市区街道

1、效果

输入:海珠区沙园街道西基村

输出:

2、导入库

复制代码
pip install jionlp

3、示例代码

python 复制代码
import jionlp as jio

text = '海珠区沙园街道西基村'
res = jio.parse_location(text, town_village=True)
print(res)
相关推荐
copyer_xyf1 分钟前
LangChain 调用 LLM
后端·python·agent
copyer_xyf10 分钟前
Prompt 组织管理
后端·python·agent
asdfg125896319 分钟前
JavaBean是什么?怎么理解?有什么用途?
java·开发语言
dsyyyyy110135 分钟前
JavaScript变量
开发语言·javascript·ecmascript
shimly1234561 小时前
python3 uvicorn 是啥?
python
z落落2 小时前
C#WinForm 窗体切换与窗体传值(登录跳转案例)+WinForm 窗体传值(从上往下传、从下往上传)
开发语言·windows·c#
CTA量化套保2 小时前
期货量化程序 time.sleep 卡死:天勤单线程与 deadline 替代
python·区块链
allway22 小时前
How to Echo Multiline to a File in Bash [3 Methods]
开发语言·chrome·bash
weixin_462446232 小时前
手把手教你用 Bash 脚本自动更新 /etc/hosts —— 自动绑定网卡 IP 与节点名
开发语言·tcp/ip·bash
一个梦醒了2 小时前
安装git bash选项推荐
开发语言·git·bash