0%
jionlp
版本1.5.5
1
| pip install jionlp -i https://pypi.douban.com/simple/
|
使用示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| import jionlp as jio
text = '四川省成都市武侯区红牌楼街19号红星大厦9楼2号' res = jio.parse_location(text) print(res)
text = '武侯区红牌楼街道19号红星大厦9楼2号' res = jio.parse_location(text) print(res)
text = '江苏省南通市崇川区陈桥街道33号' res = jio.parse_location(text,town_village=True) print(res)
text = '港闸区陈桥街道33号' res = jio.parse_location(text, change2new=True, town_village=True) print(res)
|