Commit d6092534 authored by liujiangnan's avatar liujiangnan

debug

parent 2a42bdf9
...@@ -885,7 +885,6 @@ function annotation(text, detail){ ...@@ -885,7 +885,6 @@ function annotation(text, detail){
let rawSent = feedBack.rawSent; let rawSent = feedBack.rawSent;
const errorPosInfos = feedBack.errorPosInfos; const errorPosInfos = feedBack.errorPosInfos;
console.log(num, errorPosInfos);
for(let j=errorPosInfos.length-1; j>=0; j--){ for(let j=errorPosInfos.length-1; j>=0; j--){
const errPos = errorPosInfos[j]; const errPos = errorPosInfos[j];
const startPos = errPos.startPos; const startPos = errPos.startPos;
...@@ -897,9 +896,7 @@ function annotation(text, detail){ ...@@ -897,9 +896,7 @@ function annotation(text, detail){
const reason = errPos.reason; const reason = errPos.reason;
evaluateHtml += `<br><span class="err-grammar-index">${num+j+1}</span>&nbsp;${reason}`; evaluateHtml += `<br><span class="err-grammar-index">${num+j+1}</span>&nbsp;${reason}`;
} }
if(errorPosInfos.length>0){ num += errorPosInfos.length;
num ++;
}
} }
return {annotationHtml, evaluateHtml}; 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