Commit f2eeabd7 by liuyu

2024/04/25 自动标注模板相似度阈值bug修复

parent 2c3e0cf4
......@@ -318,20 +318,20 @@ public class TaskServiceCommon extends BaseTaskTypePair<TaskServiceCommon.TaskCo
}
private boolean textNumberMatch(List<String> textNumber, String text) {
boolean res = false;
boolean res = true;
if (CollectionUtils.isEmpty(textNumber)) {
return res;
}
List<String> numberMatch = Tools.numberMatch(text);
if (CollectionUtils.isEmpty(numberMatch) || numberMatch.size() != textNumber.size()) {
return res;
return false;
}
for (String number : textNumber) {
if (!numberMatch.contains(number)) {
return res;
return false;
}
}
return true;
return res;
}
private static MarkInfo getMarkInfo(JSONObject hit) {
......
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