You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 months ago | |
|---|---|---|
| .idea | 4 months ago | |
| data | 4 months ago | |
| logs | 4 months ago | |
| output | 4 months ago | |
| src | 4 months ago | |
| temp | 4 months ago | |
| test_data | 4 months ago | |
| test_output | 4 months ago | |
| tests | 4 months ago | |
| .gitignore | 4 months ago | |
| Dockerfile | 4 months ago | |
| README.md | 4 months ago | |
| build.py | 4 months ago | |
| config.yaml | 4 months ago | |
| install.sh | 4 months ago | |
| institution_matcher.spec | 4 months ago | |
| main.py | 4 months ago | |
| requirements.txt | 4 months ago | |
| run.sh | 4 months ago | |
| run_tests.py | 4 months ago | |
| start.sh | 4 months ago | |
| test.sh | 4 months ago | |
| test_config.yaml | 4 months ago | |
| test_data.py | 4 months ago | |
| 需求.md | 4 months ago | |
| 项目总结.md | 4 months ago | |
README.md
新疆各政企单位机构名称匹配工具
项目简介
本项目用于匹配新疆各政企单位的机构名称,支持简称匹配和模糊匹配功能。
功能特性
- 支持达蒙DM数据库连接
- 智能机构名称匹配算法
- 简称自动识别和匹配
- 多种输出格式(CSV、Excel、JSON)
- 详细的匹配报告和统计
- 支持ARM架构部署
安装要求
- Python 3.8+
- 达蒙DM数据库驱动
- 相关Python依赖包
快速开始
1. 安装依赖
pip install -r requirements.txt
2. 配置数据库
编辑 config.yaml 文件,配置数据库连接信息:
database:
host: "your_database_host"
port: 5236
username: "your_username"
password: "your_password"
database: "your_database"
3. 运行程序
python main.py
4. 使用打包版本
# 构建可执行文件
python build.py
# 运行可执行文件
./dist/institution_matcher
命令行参数
--config, -c: 配置文件路径--output-dir, -o: 输出目录--save-to-db: 保存结果到数据库--threshold, -t: 相似度阈值--max-matches, -m: 最大匹配数
输出文件
matching_results_YYYYMMDD_HHMMSS.csv: 匹配结果CSV文件matching_results_YYYYMMDD_HHMMSS.xlsx: 匹配结果Excel文件matching_report_YYYYMMDD_HHMMSS.json: 匹配报告JSON文件
匹配算法
- 完全匹配:100%相似度
- 高度匹配:85%-99%相似度
- 中度匹配:75%-84%相似度
- 低度匹配:70%-74%相似度
简称支持
支持常见机构简称,如:
- 妇女联合会 → 妇联
- 政治协商会议 → 政协
- 人民代表大会常务委员会 → 人大常委会
许可证
MIT License