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.
|
2 weeks ago | |
---|---|---|
.idea | 2 weeks ago | |
data | 2 weeks ago | |
logs | 2 weeks ago | |
output | 2 weeks ago | |
src | 2 weeks ago | |
temp | 2 weeks ago | |
test_data | 2 weeks ago | |
test_output | 2 weeks ago | |
tests | 2 weeks ago | |
.gitignore | 2 weeks ago | |
Dockerfile | 2 weeks ago | |
README.md | 2 weeks ago | |
build.py | 2 weeks ago | |
build.sh | 2 weeks ago | |
config.yaml | 2 weeks ago | |
install.sh | 2 weeks ago | |
institution_matcher.spec | 2 weeks ago | |
main.py | 2 weeks ago | |
requirements.txt | 2 weeks ago | |
run.sh | 2 weeks ago | |
run_tests.py | 2 weeks ago | |
start.sh | 2 weeks ago | |
test.sh | 2 weeks ago | |
test_config.yaml | 2 weeks ago | |
test_data.py | 2 weeks ago | |
需求.md | 2 weeks ago | |
项目总结.md | 2 weeks 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