|
@@ -57,7 +57,7 @@ func init() {
|
|
|
MesReg = regexp.MustCompile(messycodeStr)
|
|
|
SymInterCon = qu.ObjArrToStringArr(SpecialSymbols["symintercon"].([]interface{}))
|
|
|
|
|
|
- // text := []rune("(阳江市海陵岛经济开发试验区环境卫生管理所)(阳江市海陵岛经济开发试验区环境卫生管理所果皮箱、垃圾桶采购项目)(GX2015YJ1010GK125)的综合评分法中标公告广东")
|
|
|
+ // text := []rune("2019年大兴新城地区公共厕所及附属设施项目(改造-施工)")
|
|
|
// for i := 1; i <= 2; i++ {
|
|
|
// text = AnotherRemoveStart(text)
|
|
|
// qu.Debug(string(text))
|
|
@@ -371,7 +371,7 @@ func DelContext(pairedIndex map[int]int, text []rune) ([]rune, bool) {
|
|
|
tmp = text[s+1 : e]
|
|
|
if len(tmp) > 2 { //排除对称符号中只有["工程","项目","采购","服务","监理","施工","设计"]
|
|
|
for _, r := range SymInterCon {
|
|
|
- if strings.HasSuffix(string(tmp), r) && len(tmp) > length {
|
|
|
+ if strings.HasSuffix(string(tmp), r) && len(tmp) > length && len([]rune(strings.Replace(string(tmp), r, "", -1))) > 4 {
|
|
|
ismatch = true
|
|
|
result = tmp
|
|
|
length = len(tmp)
|