فهرست منبع

机器人回复匹配度优化

renjiaojiao 2 سال پیش
والد
کامیت
482e5c3289
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      rpc/knowledge/util/elasticsearch_dsl.go

+ 1 - 1
rpc/knowledge/util/elasticsearch_dsl.go

@@ -19,7 +19,7 @@ func DSL4SmartResponse(question string, entId string, msgType int, addr, index,
 	if len(hanlpCutWords) == 0 {
 		hanlpCutWords = append(hanlpCutWords, question)
 	}
-	question = strings.Join(hanlpCutWords, "")
+	question = strings.Join(hanlpCutWords, " ")
 	lenQuestion := len([]rune(question))
 	//logx.Info("lenQuestion", lenQuestion)
 	if lenQuestion >= 2 {