mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-01-03 15:58:20 +08:00
[improvement](chat) Merge HanlpDictMapper and FuzzyNameMapper into KeywordMapper. (#493)
Co-authored-by: lexluo <lexluo@tencent.com>
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user