mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
(improvement)(Headless) Fix the issue where 'correct' is only executed once. (#960)
This commit is contained in:
@@ -77,7 +77,7 @@ public class WorkflowServiceImpl implements WorkflowService {
|
|||||||
}
|
}
|
||||||
for (SemanticCorrector corrector : semanticCorrectors) {
|
for (SemanticCorrector corrector : semanticCorrectors) {
|
||||||
corrector.correct(queryCtx, semanticQuery.getParseInfo());
|
corrector.correct(queryCtx, semanticQuery.getParseInfo());
|
||||||
if (!WorkflowState.PARSING.equals(queryCtx.getWorkflowState())) {
|
if (!WorkflowState.CORRECTING.equals(queryCtx.getWorkflowState())) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user