优化群英文
This commit is contained in:
parent
ab28a6bdc2
commit
a06012cbc3
@ -53,7 +53,7 @@ public enum ActionPartSpeechEnum implements IChinesePartSpeech{
|
||||
List<SystemTalkAnswerConfigEntity> commands){
|
||||
return action;
|
||||
}
|
||||
},
|
||||
},*/
|
||||
vn(0, "名动词"){
|
||||
@Override
|
||||
public Action getAction(ConcurrentHashMap<String, SystemTalkAnswerConfig> keyGroup,
|
||||
@ -63,13 +63,13 @@ public enum ActionPartSpeechEnum implements IChinesePartSpeech{
|
||||
List<SystemTalkAnswerConfigEntity> systemTalkAnswerConfigEntities,
|
||||
List<DeviceUserBindEntity> includs,
|
||||
List<SystemTalkAnswerConfigEntity> commands){
|
||||
return action;
|
||||
return v.getAction(keyGroup, key, actions, action, systemTalkAnswerConfigEntities, includs, commands);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
ng(1, "名语素"){
|
||||
/*ng(1, "名语素"){
|
||||
@Override
|
||||
public Action getAction(ConcurrentHashMap<String, SystemTalkAnswerConfig> keyGroup,
|
||||
String key,
|
||||
|
||||
@ -256,6 +256,12 @@ public class NlpService {
|
||||
if(actions.getA() + actions.getB() > 0){
|
||||
actions.getActions().add(action);
|
||||
}
|
||||
if(actions.getActions().size() > 1){
|
||||
actions.getActions().sort((a, b) -> {
|
||||
return Integer.parseInt(String.valueOf(a.getSystemTalkAnswerConfigEntity().getKeyOrder() - b.getSystemTalkAnswerConfigEntity().getKeyOrder()));
|
||||
});
|
||||
}
|
||||
|
||||
return actions;
|
||||
});
|
||||
}
|
||||
|
||||
@ -89,6 +89,7 @@ public class DeviceController {
|
||||
session.setNickName(userTalkRequst.getNickName());
|
||||
session.setRoleId(DeviceCodeEnum.BOX.getName());
|
||||
session.setRequestId(userTalkRequst.getTimeTemp());
|
||||
session.setLanguage(actions.getLanguage());
|
||||
//当不不使用城市时,默认使用杭州查询
|
||||
session.setCustomerIP("115.205.2.137");
|
||||
BaseMessageResp baseMessageResp = new BaseMessageResp();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
server:
|
||||
port: 8080
|
||||
port: 8082
|
||||
spring:
|
||||
application:
|
||||
name: qiuguo-iot-box-user-api
|
||||
Loading…
x
Reference in New Issue
Block a user