Open D-YB opened 3 years ago
location_str = ["台湾省台中县和平乡"] import cpca df = cpca.transform(location_str,pos_sensitive=True,umap={"台中县":"台中市"}) print(df)
省 市 区 地址 adcode 省_pos 市_pos 区_pos
台湾省 None None 台中县和平乡 710000 0 -1 -1
location_str = ["台湾省台中县和平乡"] import cpca df = cpca.transform(location_str,pos_sensitive=True,umap={"台中县":"台中市"}) print(df)
结果
台湾省 None None 台中县和平乡 710000 0 -1 -1