|
@@ -98,7 +98,8 @@ func ExtractDistrict(field []string, bres bool, c, p, id string) (bool, string,
|
|
|
bres = true
|
|
|
} else { //对比抽到的城市省份是否一致
|
|
|
if c != ctmp || p != ptmp {
|
|
|
- log.Println("City And Province, Inconsistent Before And After,Id:", id)
|
|
|
+ log.Println(str, word)
|
|
|
+ log.Println("district: City And Province, Inconsistent Before And After,Id:", id, c, p, ctmp, ptmp, d)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -115,7 +116,8 @@ func ExtractDistrict(field []string, bres bool, c, p, id string) (bool, string,
|
|
|
bres = true
|
|
|
} else { //对比抽到的城市省份是否一致
|
|
|
if c != ctmp || p != ptmp {
|
|
|
- log.Println("City And Province, Inconsistent Before And After,Id:", id)
|
|
|
+ log.Println(str, word)
|
|
|
+ log.Println("street: City And Province, Inconsistent Before And After,Id:", id, c, p, ctmp, ptmp, d)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -132,10 +134,10 @@ func ExtractProvinceCity(province, city, id string, field []string) (bres bool,
|
|
|
bc := true //是否继续抽取
|
|
|
if city != "" {
|
|
|
if CityBrief[city] == nil { //简称不存在
|
|
|
- log.Println("city err:", city, id)
|
|
|
+ //log.Println("city err:", city, id)
|
|
|
} else { //简称存在
|
|
|
if province != CityBrief[city].P.Brief { //省份不配对
|
|
|
- log.Println("province err:", city, province, id)
|
|
|
+ //log.Println("province err:", city, province, id)
|
|
|
} else {
|
|
|
bc = false
|
|
|
//城市省份都正确
|