mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +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) {
|
||||
corrector.correct(queryCtx, semanticQuery.getParseInfo());
|
||||
if (!WorkflowState.PARSING.equals(queryCtx.getWorkflowState())) {
|
||||
if (!WorkflowState.CORRECTING.equals(queryCtx.getWorkflowState())) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user