skills/entity-recognition/SKILL.md
用于金融文本中实体识别的原子技能,包括公司主体、金融产品、监管机构、关键人物等实体类型的识别和抽取。适用于公告解析、报告分析、风险监控和合规检查等金融场景。
npx skillsauth add aifinlab/finclaw entity-recognitionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本 Skill 支持多种金融文本数据输入,核心数据来源包括:
说明:本 Skill 主要基于规则和字典匹配进行实体识别,对于复杂语境下的实体消歧和关系抽取能力有限。建议结合上下文分析和人工复核使用。
本 Skill 提供全面的金融实体识别能力,涵盖四大类实体类型:
pip install -r requirements.txt
# 识别文本中的实体
python scripts/recognize_entities.py --input announcement.txt --output entities.json
# 指定识别的实体类型
python scripts/recognize_entities.py --input report.txt --output companies.json --entity-type company
# 使用自定义实体字典
python scripts/recognize_entities.py --input text.txt --output results.json --dictionary custom_dict.csv
# 批量处理多个文件
python scripts/batch_recognize.py --input-dir ./documents --output-dir ./results --format json
# 处理PDF文档(需先转换为文本)
python scripts/process_pdf.py --input document.pdf --output text.txt
python scripts/recognize_entities.py --input text.txt --output entities.json
# 设置置信度阈值
python scripts/recognize_entities.py --input text.txt --output results.json --confidence-threshold 0.8
# 启用实体消歧
python scripts/recognize_entities.py --input text.txt --output results.json --disambiguation true
# 导出可视化结果
python scripts/recognize_entities.py --input text.txt --output visualization.html --format html
{
"document_id": "announcement_20250315_001",
"source_file": "announcement.txt",
"processing_time": "2025-03-15T17:50:00",
"entities": [
{
"text": "贵州茅台酒股份有限公司",
"type": "company",
"subtype": "listed_company",
"normalized_name": "贵州茅台",
"stock_code": "600519",
"confidence": 0.95,
"position": {
"start": 120,
"end": 130,
"sentence": "贵州茅台酒股份有限公司发布2024年度报告"
},
"attributes": {
"industry": "白酒制造",
"exchange": "上海证券交易所"
}
},
{
"text": "人民币100亿元",
"type": "amount",
"subtype": "rmb_amount",
"normalized_value": 10000000000,
"currency": "CNY",
"confidence": 0.98,
"position": {
"start": 250,
"end": 260,
"sentence": "公司拟向全体股东每10股派发现金红利人民币100亿元"
}
},
{
"text": "中国证券监督管理委员会",
"type": "regulatory_body",
"subtype": "securities_regulator",
"normalized_name": "证监会",
"abbreviation": "CSRC",
"confidence": 0.99,
"position": {
"start": 350,
"end": 365,
"sentence": "根据中国证券监督管理委员会的相关规定"
}
}
],
"statistics": {
"total_entities": 45,
"by_type": {
"company": 12,
"amount": 8,
"date": 10,
"regulatory_body": 3,
"person": 7,
"product": 5
},
"average_confidence": 0.92
},
"relationships": [
{
"source": "贵州茅台",
"target": "丁雄军",
"relation": "chairman_of",
"confidence": 0.88,
"evidence": "丁雄军先生担任贵州茅台酒股份有限公司董事长"
}
]
}
LICENSE 文件requirements.txt 为准development
# trust-valuation-engine ## 描述 信托资产估值引擎,支持非标债权估值、股权估值、净值计算、减值测试。 ## 功能 - 非标债权估值(现金流折现法) - 股权估值(市场法/收益法/资产基础法) - 净值计算与发布 - 减值测试与拨备 - 估值模型管理 ## 许可证 MIT License
development
# trust-risk-manager ## 描述 信托风险全流程管理工具,覆盖信用风险、市场风险、流动性风险、操作风险四大维度,提供实时监控、预警提示和风险处置建议。 ## 功能 - 信用风险评估(融资主体、担保措施、偿债能力) - 市场风险监控(利率、汇率、商品价格敏感性) - 流动性风险分析(期限错配、赎回压力、变现能力) - 操作风险检查(流程合规、系统安全) - 风险预警指标(VaR、CVaR、压力测试) - 风险限额管理(集中度、久期、杠杆) - 风险报告生成 ## 使用场景 - 风控部门日常监控 - 投后管理风险排查 - 新产品风险评审 - 监管报送数据准备 - 风险预警处置 ## 输入输出 ### 输入 ```json { "portfolio_id": "", "risk_type": "all|credit|market|liquidity|operation", "assets": [ { "asset_id": "", "asset_type": "非标债权|股票|债券|基金", "exposu
development
# trust-product-analyzer ## 描述 信托产品综合分析与筛选工具,支持产品信息抓取、风险评级、收益测算、合规检查和竞品对比。 ## 功能 - 信托产品信息智能抓取与解析(支持用益信托网、中国信托登记等平台) - 多维度风险评估(信用风险、市场风险、流动性风险) - 预期收益与实际收益对比分析 - 合格投资者适当性匹配 - 产品竞品横向对比 - 自动生成尽调报告 ## 使用场景 - 理财师为客户筛选合适信托产品 - 投资经理进行竞品分析 - 风控部门审查产品合规性 - 研究人员追踪市场产品发行情况 ## 输入输出 ### 输入 ```json { "action": "analyze|compare|screen", "product_code": "", "product_name": "", "filters": { "min_yield": 6.5, "max_duration": 24, "risk_level": ["R2", "R3"], "trust_type": "集合信托", "i
development
# trust-post-investment-monitor ## 描述 信托投后监控工具,提供预警指标追踪、风险事件监测、处置建议生成、定期报告输出。 ## 功能 - 融资主体监控(经营/财务/舆情) - 担保物监控(价值/权属/流动性) - 预警阈值管理 - 风险事件响应 - 处置方案建议 - 定期监控报告 ## 许可证 MIT License