完善了识别逻辑,允许轻微改动需求描述

This commit is contained in:
2026-04-12 21:45:55 +08:00
parent aa8fd4d84a
commit f01ddf045d
10 changed files with 1099 additions and 183 deletions

View File

@@ -10,6 +10,8 @@
- **智能过滤**:自动过滤系统描述、重复需求等非需求内容
- **结构化输出**按章节层次组织的JSON格式输出
- **表格需求识别**:支持从表格中提取功能/接口/其他需求
- **PDF表格提取**支持从PDF中提取表格并自动挂接到章节
- **长句原子拆分**:自动将包含多个需求点的长句拆分为多个可验证需求项
## 快速开始
@@ -20,6 +22,9 @@ pip install -r requirements.txt
# 如果使用LLM功能还需安装
pip install dashscope
# 若需增强PDF表格提取能力requirements.txt已包含
pip install pdfplumber
```
### 配置API密钥LLM模式
@@ -41,7 +46,7 @@ llm:
```bash
# LLM增强模式
python main.py -i DC-SRS.pdf -o output.json
python main.py -i ".\input\DC-SRS.pdf" -o ".\output\output.json"
# 纯规则模式不使用LLM
python main.py -i DC-SRS.pdf -o output.json --no-llm