# wRASA **Repository Path**: logicjwell/w-rasa ## Basic Information - **Project Name**: wRASA - **Description**: 中医证候机器人 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2024-09-03 - **Last Updated**: 2024-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 中医证候机器人 ## 架构 1. 使用RASA框架,RASA X测试 1. 使用redisGraph作为数据库:[文档](https://redislabs.com/blog/getting-started-with-knowledge-graphs-in-redisgraph/) 1. 知识图谱数据:[中医药知识服务平台](http://www.tcmkb.cn/knowledge_graph/) 1. 数据格式转换(owl转obo):[GitHub](https://github.com/ontodev/robot) ## 使用 1. 安装redisGraph和rasa x 1. 下载知识图谱:[链接](http://www.tcmkb.cn/knowledge_graph/samples/syndrome-sample.owl) 1. 转换数据格式:[GitHub](https://github.com/ontodev/robot) ``` java -jar robot.jar convert --check false --input syndrome-sample.owl --output tcm.obo ``` 1. 更改文档编码为UTF-8 1. redisGraph导入数据 ``` pip install pygobo python -m pygobo load tcm.obo --graph tcm ``` 1. 在actions.py第20行修改redisGraph服务器IP和端口 1. 一个终端启动actions服务 ``` rasa run actions ``` 1. 另一个终端运行rasa x ``` rasa x ```