Guarantee Processor 保函要素抽取项目
To automate Bank Guarantee Issuance 保函开立流程自动化. Contribute to u3588064/AutoGuarantee development by creating an account on GitHub.
README
保函业务自动化项目
项目概述
本项目旨在从保函文本中抽取要素、切分条款、提示要点、录制系统,以便于法律和金融专业人士进行分析和处理。项目使用自然语言处理技术,从保函文本中提取特定要素,并以JSON格式输出结果。
项目结构
保函要素抽取项目/
│
├── data/
│ ├── sample_guarantee.txt # 示例保函文本
│ └── ... # 其他保函文本
│
├── src/
│ ├── extractor.py # 要素抽取脚本
│ ├── clause_splitter.py # 条款分割脚本
│ ├── key_points.py # 要点提示脚本
│ ├── format.py # 格式处理脚本
│ └── ... # 其他源代码文件
│
├── tests/
│ ├── test_extractor.py # 要素抽取单元测试
│ ├── test_clause_splitter.py # 条款分割单元测试
│ └── ... # 其他测试文件
│
├── README.md # 项目说明文档
├── requirements.txt # 项目依赖
└── ... # 其他配置文件
要素列表
项目目前支持抽取以下要素:
- 担保人的SWIFT标识代码
- 开立日期
- 保函种类
- 保函编号
- 担保人的名称
- 保函开立地址
- 申请人的名称
- 申请人的地址
- 受益人的名称
- 受益人的地址
- 基础合同名称
- 基础合同编号
- 基础合同货物描述
- 保函的金额
- 保函的币种
条款分割
项目支持按以下类别切分条款:
- 需提交的支持索赔的单据
- 需提交单据的语言
- 交单形式
- 交单地点
- 生效条款
- 失效条款
- 费用的承担方
- 担保人的承诺
- 索赔的提交要求
- 索赔的时间和地点要求
- 适用规则
- 适用法律
- 司法管辖地
使用方法
#在线版体验
完成度80%,域名申请中
#本地部署
-
克隆项目仓库:
git clone https://github.com/u3588064/AutoGuarantee.git cd 保函要素抽取项目
-
安装项目依赖:
pip install -r requirements.txt
-
运行要素抽取脚本:
python src/extractor.py data/sample_guarantee.txt
-
查看输出结果: 脚本会在终端输出抽取的要素,以JSON格式展示。
示例
输入文本:
Performance Guarantee
Issue date: December 7, 2023
No.: XX1234567
To:Machine Shopping Department (hereinafter called 'the Beneficiary')
Add:Q.X.TOY 101 HUAYUAN, Korea
…… (SEE Full Text in the repository)
This performance guarantee shall be valid from its issuance and remian valid until August 35, 2025 (expiry date). Any demand in respect of this guarantee should reach us at our counter not later than the close of our Business hours on the above expiry date.
This performance guarantee is only personnel to you and is not assignable or transferable.
This guaranttee is subject to the Uniform Rules for Demand Guarantees, ICC Publication No.758.
要素抽取结果:
{
"担保人的SWIFT标识代码": "",
"开立日期": "December 7, 2023",
"保函种类": ["Performance Guarantee","Advance Payment Guarantee"],
"保函编号": "XX1234567",
"担保人的名称": "Bank of China Ltd, ABC Branch",
"保函开立地址": "No.1 N Road, Xi Province, P. R. China",
"申请人的名称": "GUANGDONG GX GROUP MACHINE CO., LTD",
"申请人的地址": "NO.18 E ROAD, CHINA",
"受益人的名称": "Machine Shopping Department",
"受益人的地址": "Q.X.TOY 101 HUAYUAN, Korea",
"基础合同名称": "Supply Contract",
"基础合同编号": "AK/123/2023/09",
"基础合同货物描述": "Supply of Toy bags",
"保函的金额": 1,123.00,
"保函的币种": "USD"
}
{
"保函种类": ["Performance Guarantee","Advance Payment Guarantee"]
}
条款切分结果:
{
"需提交的支持索赔的单据": null,
"需提交单据的语言": null,
"交单形式": "any such demand in original should be presented to us through your Banker confirmation that the signatures thereon are authentic and legally binding upon you.",
"交单地点": "our counter",
"生效条款": "This performance guarantee shall be valid from its issuance",
"失效条款": "This performance guarantee shall ... remain valid until August 35, 2025 (expiry date).",
"费用的承担方": null,
"担保人的承诺": "we undertake to pay you unconditionally and independently, upon our receipt of your first written demand in original paper form declaring the seller fails to perform its obligations under the Contract and specifying in which respect the seller is in failure.",
"索赔的提交要求": "your first written demand in original paper form declaring the seller fails to perform its obligations under the Contract and specifying in which respect the seller is in failure.",
"索赔的时间和地点要求": "Any demand in respect of this guarantee should reach us at our counter not later than the close of our Business hours on the above expiry date.",
"适用规则": "This guaranttee is subject to the Uniform Rules for Demand Guarantees, ICC Publication No.758.",
"适用法律": null,
"司法管辖地": null
}
贡献
欢迎对本项目进行贡献。如果您有任何建议或发现任何问题,请提交Issue或Pull Request。
许可证
本项目采用MIT许可证,详见LICENSE文件。
联系方式
如果您有任何问题或需要进一步的信息,请联系项目维护者:u3588064@connect.hku.hk。
推荐服务器
mult-fetch-mcp-server
一个多功能的、符合 MCP 规范的网页内容抓取工具,支持多种模式(浏览器/Node)、格式(HTML/JSON/Markdown/文本)和智能代理检测,并提供双语界面(英语/中文)。
Knowledge Graph Memory Server
为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。
Hyperbrowser
欢迎来到 Hyperbrowser,人工智能的互联网。Hyperbrowser 是下一代平台,旨在增强人工智能代理的能力,并实现轻松、可扩展的浏览器自动化。它专为人工智能开发者打造,消除了本地基础设施和性能瓶颈带来的麻烦,让您能够:
Exa MCP Server
一个模型上下文协议服务器,它使像 Claude 这样的人工智能助手能够以安全和受控的方式,使用 Exa AI 搜索 API 执行实时网络搜索。
mcp-perplexity
Perplexity API 的 MCP 服务器。
MCP Web Research Server
一个模型上下文协议服务器,使 Claude 能够通过集成 Google 搜索、提取网页内容和捕获屏幕截图来进行网络研究。

YouTube Translate MCP
一个模型上下文协议服务器,可以通过文字稿、翻译、摘要和各种语言的字幕生成来访问 YouTube 视频内容。
PubMedSearch MCP Server
一个模型内容协议(Model Content Protocol)服务器,提供从 PubMed 数据库搜索和检索学术论文的工具。
mcp-codex-keeper
作为开发知识的守护者,为 AI 助手提供精心策划的最新文档和最佳实践访问权限。
Perplexity Deep Research MCP
一个服务器,它允许 AI 助手使用 Perplexity 的 sonar-deep-research 模型进行网络搜索,并提供引用支持。