# QAExpertSystem **Repository Path**: deathvader/qaexpert-system ## Basic Information - **Project Name**: QAExpertSystem - **Description**: No description available - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-11-20 - **Last Updated**: 2025-09-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: Python, 专家系统, 知识图谱, 语义网络, 问答系统 ## README # QAExpertSystem #### 介绍 主体使用python语言, 以及neo4j图数据库实现了一个海洋鱼类知识问答系统 基于模式串匹配(匹配所问问题, 使用ac自动机进行模式串匹配), 非机器学习的方法 #### 软件架构 ``` │ .gitignore │ ├─.idea │ │ .gitignore │ │ misc.xml │ │ modules.xml │ │ qaexpert-system.iml │ │ vcs.xml │ │ workspace.xml │ │ │ ├─dictionaries │ │ Liyunhan.xml │ │ │ └─inspectionProfiles │ profiles_settings.xml │ ├─Data │ DataPreprocessing.py │ fish.csv │ fishplacerelationship.csv │ place.csv │ ├─Database │ create_and_init_KG.py │ __init__.py │ ├─GUI │ │ Main_frame.py │ │ My_app.py │ │ __init__.py │ │ │ └─__pycache__ │ Main_frame.cpython-37.pyc │ __init__.cpython-37.pyc │ ├─Inference_engine │ │ L1_engine.py │ │ L2_engine.py │ │ Results_Searcher.py │ │ __init__.py │ │ │ └─__pycache__ │ L1_engine.cpython-37.pyc │ L2_engine.cpython-37.pyc │ Results_Searcher.cpython-37.pyc │ __init__.cpython-37.pyc │ └─Knowledge_base │ init_level_1.py │ __init__.py │ ├─L1_Knowledge_base │ │ bio_class_cn.txt │ │ bio_family_cn.txt │ │ bio_order_cn.txt │ │ bio_phylum_cn.txt │ │ fish_name.txt │ │ fish_name_en.txt │ │ place.txt │ │ │ └─rules │ L1_rules.json │ └─L2_Knowledge_base └─rules L2_rules.json ``` #### 安装教程 1. 首先需要在你的电脑上创建和初始化neo4j图数据库, 注意: 要把参数(用户名, 密码)改为自己的(两个py文件, 分别为Results_Searcher.py和create_and_init_KG.py), 然后先运行create_and_init_KG.py创建图数据库 2. 初始化L1推理引擎, 运行init_level_1.py 3. 运行图形接口My_app.py #### 使用说明 见代码中注释