Commit d6092534 authored by liujiangnan's avatar liujiangnan

debug

parent 2a42bdf9
......@@ -885,7 +885,6 @@ function annotation(text, detail){
let rawSent = feedBack.rawSent;
const errorPosInfos = feedBack.errorPosInfos;
console.log(num, errorPosInfos);
for(let j=errorPosInfos.length-1; j>=0; j--){
const errPos = errorPosInfos[j];
const startPos = errPos.startPos;
......@@ -897,9 +896,7 @@ function annotation(text, detail){
const reason = errPos.reason;
evaluateHtml += `<br><span class="err-grammar-index">${num+j+1}</span>&nbsp;${reason}`;
}
if(errorPosInfos.length>0){
num ++;
}
num += errorPosInfos.length;
}
return {annotationHtml, evaluateHtml};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment