feat: update task routing and coze handling
This commit is contained in:
+4
-4
@@ -50,9 +50,9 @@ public final class CozeGroupResultPropagator {
|
||||
|
||||
/**
|
||||
* 否定前缀关键字。若当前值同时包含 standard 和这些关键字之一,则不视为命中。
|
||||
* 用于规避"没有侵权""不侵权""未发现明显侵权风险"等被 contains 误判为命中"侵权"的情况。
|
||||
* 用于规避"没有侵权""无侵权""不侵权""未发现明显侵权风险"等被 contains 误判为命中"侵权"的情况。
|
||||
*/
|
||||
private static final List<String> NEGATIVE_KEYWORDS = Arrays.asList("没有", "不", "未");
|
||||
private static final List<String> NEGATIVE_KEYWORDS = Arrays.asList("没有", "无", "不", "未");
|
||||
|
||||
private CozeGroupResultPropagator() {
|
||||
}
|
||||
@@ -134,8 +134,8 @@ public final class CozeGroupResultPropagator {
|
||||
}
|
||||
|
||||
// 按 hitValues 顺序检测组内是否有命中(包含语义),命中即定下"标准值"。
|
||||
// 命中需同时满足:当前值包含 standard 且不含任何否定关键字("没有"/"不"/"未"),
|
||||
// 避免"没有侵权""不侵权""未发现明显侵权风险"这类被 contains 误判为命中。
|
||||
// 命中需同时满足:当前值包含 standard 且不含任何否定关键字("没有"/"无"/"不"/"未"),
|
||||
// 避免"没有侵权""无侵权""不侵权""未发现明显侵权风险"这类被 contains 误判为命中。
|
||||
String matchedStandardValue = null;
|
||||
outer:
|
||||
for (String standard : hitValues) {
|
||||
|
||||
Reference in New Issue
Block a user