Skip to content

HaENet 5.0

Choose a tag to compare

@gh0stkey gh0stkey released this 25 Feb 02:40

更新内容

HaENet 5.0版本更新内容如下。

功能更新

HaENet 5.0主要新增Validator功能,支持将HaENet数据交由外部验证并接收返回的等级标签(high/medium/low/none),同时允许用户手动定义标签等级。HaENet会通过stdin的方式发送JSON数据给到外部验证器,并接收stdout的返回为数据进行标注。

数据格式

输入(验证器接收):

{
  "rule": {
    "name": "规则名称",
    "regex": "(正则表达式)",
    "group": "分组名称"
  },
  "items": [
    {
      "index": 0,
      "data": {
        "match": "匹配内容",
        "context": {
          "before": "匹配内容前50个字符串",
          "after": "匹配内容后50个字符串"
        }
      }
    }
  ]
}

输出(验证器返回):

{
  "results": [
    { "index": 0, "tags": "medium" },
    { "index": 1, "tags": "low" },
    { "index": 2, "tags": "high" }
  ]
}

问题修复

无。