场景语音识别错误信息记录修改

This commit is contained in:
joylink_zhangsai 2021-05-06 16:12:54 +08:00
parent 0763a46ced
commit 5284177cf2
2 changed files with 3 additions and 3 deletions

View File

@ -334,7 +334,7 @@ public class CompetitionAndScriptManager {
for (String num : split) { for (String num : split) {
switch (num) { switch (num) {
case "1": case "1":
sb.append("[1一幺妖腰摇要爻]"); sb.append("[1一幺妖腰摇要爻]");
break; break;
case "2": case "2":
sb.append("[两梁良亮辆量凉]"); sb.append("[两梁良亮辆量凉]");
@ -370,7 +370,7 @@ public class CompetitionAndScriptManager {
matchEnd = matcher.end(); matchEnd = matcher.end();
replacedContent = matcher.replaceFirst(group); replacedContent = matcher.replaceFirst(group);
} else { } else {
errors.add(group); errors.add(replaceMatch.group(2));
} }
} }
return replacedContent; return replacedContent;

View File

@ -40,7 +40,7 @@ public class SimulationVoiceHandler {
replacementList.add(new Replacement("(茼蒿)", "通号")); replacementList.add(new Replacement("(茼蒿)", "通号"));
replacementList.add(new Replacement("", "")); replacementList.add(new Replacement("", ""));
replacementList.add(new Replacement("自动折法", "自动折返")); replacementList.add(new Replacement("自动折法", "自动折返"));
replacementList.add(new Replacement("(倒插|刀叉|倒茶|倒叉|到插|倒闸|到察|到厂|道碴|到差)", "道岔")); replacementList.add(new Replacement("(倒插|刀叉|倒茶|倒叉|到插|倒闸|到察|到厂|道碴|到差|到查)", "道岔"));
replacementList.add(new Replacement("(师表|手表|时表)", "失表")); replacementList.add(new Replacement("(师表|手表|时表)", "失表"));
replacementList.add(new Replacement("攻作组", "工作组")); replacementList.add(new Replacement("攻作组", "工作组"));
replacementList.add(new Replacement("军事表", "均失表")); replacementList.add(new Replacement("军事表", "均失表"));