[improvement](chat) Merge HanlpDictMapper and FuzzyNameMapper into KeywordMapper. (#493)

Co-authored-by: lexluo <lexluo@tencent.com>
This commit is contained in:
lexluo09
2023-12-11 17:22:57 +08:00
committed by GitHub
parent d79f73eab6
commit 0c6efada43
10 changed files with 142 additions and 197 deletions

View File

@@ -1,22 +0,0 @@
package com.tencent.supersonic.chat.mapper;
import com.tencent.supersonic.chat.api.pojo.QueryContext;
import com.tencent.supersonic.chat.api.pojo.request.QueryReq;
import com.tencent.supersonic.chat.test.context.ContextTest;
import org.junit.jupiter.api.Test;
/**
* HanlpDictMapperTest
*/
class HanlpDictMapperTest extends ContextTest {
@Test
void map() {
QueryReq queryRequest = new QueryReq();
queryRequest.setChatId(1);
queryRequest.setModelId(2L);
queryRequest.setQueryText("supersonic按部门访问次数");
HanlpDictMapper hanlpDictMapper = new HanlpDictMapper();
hanlpDictMapper.map(new QueryContext(queryRequest));
}
}