Skip to content
Snippets Groups Projects
Commit 367d8bc9 authored by LostPromise0710's avatar LostPromise0710
Browse files

fix a small bug

parent 325d042a
No related branches found
Tags v1.0.23
No related merge requests found
Pipeline #67697 passed
......@@ -29,7 +29,11 @@ public class SentiStrengthController {
}
if(input.length()<1024){//输入为sentence时,todo:修改识别方式
String sentence = input.split(",")[1];
String[] temp = input.split(",");
String sentence = temp[1];
for(int i=2;i<temp.length; i++){
sentence+=","+temp[i];
}
result = sentence+" "+sentiStrength.computeSentimentScores(sentence);
return "success";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment