From 7ec57051d0e2b85acc04235f26d5b8dbad2a2c74 Mon Sep 17 00:00:00 2001 From: fanpt <320622572@qq.com> Date: Sun, 25 May 2025 17:59:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E6=96=87=E6=9C=AC=E4=B8=AD=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E9=A2=84=E5=AE=9A=E4=B9=89=E6=84=8F=E5=9B=BE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TextIntentDetector/TextSegmentClassifier.txt | 46 +++++++++++++++++++ .../TextSegmentClassifier.txt | 0 2 files changed, 46 insertions(+) create mode 100644 TextIntentDetector/TextSegmentClassifier.txt delete mode 100644 TextSegmentClassifier/TextSegmentClassifier.txt diff --git a/TextIntentDetector/TextSegmentClassifier.txt b/TextIntentDetector/TextSegmentClassifier.txt new file mode 100644 index 0000000..72a7da9 --- /dev/null +++ b/TextIntentDetector/TextSegmentClassifier.txt @@ -0,0 +1,46 @@ +# 从文本中识别预定义意图类型 + +## 功能说明 +根据提供的准确意图列表,识别文本段落中匹配的意图类型。 + +## 可用意图列表 +{IntentType} + +## 处理规则 +1. 严格匹配文本内容与意图类型的关联性 +2. 文本可能匹配多个意图类型 +3. 若无匹配则返回空对象 +4. 输出纯JSON格式,不要使用```json ```等任何Markdown标记包装。 + +## 待处理文本 +{text} + +## 验证示例 +```json +// 示例1:匹配单个意图 +输入: +{ + "text": "本公司注册地址为上海市浦东新区张江高科技园区" +} +输出: +{ + "IntentTypeList": ["公司地址"] +} + +// 示例2:匹配多个意图 +输入: +{ + "text": "2023年度财务报告显示公司总部位于北京,全年营收..." +} +输出: +{ + "IntentTypeList": ["公司地址", "公司年度报告"] +} + +// 示例3:无匹配意图 +输入: +{ + "text": "今天的天气很适合户外活动" +} +输出: +{} \ No newline at end of file diff --git a/TextSegmentClassifier/TextSegmentClassifier.txt b/TextSegmentClassifier/TextSegmentClassifier.txt deleted file mode 100644 index e69de29..0000000