{"id":21850600,"url":"https://github.com/freakwill/gimbiseo","last_synced_at":"2025-08-03T19:35:45.287Z","repository":{"id":130365532,"uuid":"158319059","full_name":"Freakwill/gimbiseo","owner":"Freakwill","description":"🤖Man-machine conversation system base on owlready2, inspirited by an Korean TV play (基于 owlready2 的问答系统。灵感来自韩剧《金秘书你为何这样》)","archived":false,"fork":false,"pushed_at":"2020-04-22T05:55:27.000Z","size":6605,"stargazers_count":12,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T03:51:09.824Z","etag":null,"topics":["description-logics","man-machine-conversation","owl","owlready2","pyparsing","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freakwill.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-11-20T02:26:00.000Z","updated_at":"2024-01-31T11:16:34.000Z","dependencies_parsed_at":"2023-03-17T00:45:48.899Z","dependency_job_id":null,"html_url":"https://github.com/Freakwill/gimbiseo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Fgimbiseo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Fgimbiseo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Fgimbiseo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freakwill%2Fgimbiseo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freakwill","download_url":"https://codeload.github.com/Freakwill/gimbiseo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248903973,"owners_count":21180830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["description-logics","man-machine-conversation","owl","owlready2","pyparsing","python"],"created_at":"2024-11-28T00:18:28.882Z","updated_at":"2025-04-14T15:03:07.379Z","avatar_url":"https://github.com/Freakwill.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gimbiseo\n🤖Man-machine conversation system base on owlready2. It is inspirited by a Korean TV Play (*what's up with Gim seceretary*). When I initiated the development of the system, I was watching the TV recommended by many people. And I wanted to make a \"digit secretary\" to reduce the brain labor. Hence I just called it gimbiseo (Gim Secretary).\n\nThank the author of OwlReady who helped me realizing the dream of human-machine dialogue system.\n\n基于 owlready2 的问答系统。灵感来自韩剧《金秘书你为何这样》。因为在开始开发这个系统的时候，我正在看这个部很多人安利的韩剧。而我最初是想做一个“数字秘书”，可以减轻我的脑力劳动。于是干脆就把这个项目叫 gimbiseo“金秘书”。\n\n旧版的[“数字秘书”](https://github.com/Freakwill/assistant)完全没有逻辑推理能力，只能记录每次的问答对，以及简单的查询-输出。特别感谢[OwlReady](https://owlready2.readthedocs.io/en/latest/)的作者使我人机对话的梦想成真。\n\n![](https://github.com/Freakwill/gimbiseo/blob/master/gimbiseo.jpg)\n\n## Requirements\n- OwlReady2\n- pyparsing\n- jieba\n\n# Usage\njust run `dialogue.py`\nor run `main.py` with UI\n\n## Attention (only for Chinese)\n不启用分词（目前不再推荐）\n- 个体名词必须加上引号\n- 动词前面加上v:, 量词加q:, 形容词在作定语的时候加a:(其余情况不加)\n- 词语之间用空格隔开\n\n启用分词（默认）\n- 个体名词必须加上引号（英文）\n- `[v动词], [a形容词]`\n- `[不]`(目前必须始终强制追加[])\n\n一般只需使用一次（在第一次出现时使用），如果保证能够识别词性，可以不加。\n\n句法:\n```\n   句子 -\u003e 名词+动词+复合名词    # 地球围绕太阳，地球是蓝色的行星，月球围绕蓝色的围绕太阳的天体\n   复合名词 -\u003e 形容词 + 形容词 + ... + 名词  # 蓝色的行星，围绕太阳的行星，红色的围绕太阳的天体\n   形容词 -\u003e ..的 | 动宾短语+的  # 蓝色的，围绕太阳的\n   名词 -\u003e 个体 | 类   # 太阳，行星\n``` \n\n错误句法:\n我爱我的祖国。# “我的”不能作为形容词 \n\n\n*注意* 疑问句的问号是中文的。\n\n详见[帮助文档](https://github.com/Freakwill/gimbiseo/blob/master/helpdoc.md)\n\n# Usage/Test/Demo\n\n## Quick start\n```python\nimport gimbiseo.main\n```\n \n## Demo\n\n    -- \"八公\" 是 狗\n    -- 狗是什么?\n    -- \"八公\" 是 a:忠诚的 狗\n    -- 忠诚的是什么?\n    -- 忠诚的 是一种 性质\n    -- 我知道了\n    -- 狗 是一种 动物\n    -- 动物是什么?\n    -- 动物 是一种 事物\n    -- 我知道了\n    -- \"八公\" 是 狗 吗？\n    -- 让我想一想...是\n    -- 狗 是一种 什么 ？\n    -- 让我想一想...动物\n    -- 狗 v:爱吃 骨头\n    -- 骨头是什么?\n    -- 狗狗 我好爱吃\n    -- 能再说一遍吗？\n    -- 骨头 是一种 事物\n    -- 我知道了\n    -- 狗 v:爱吃 骨头 吗？\n    -- 让我想一想...是\n    -- \"八公\" v:爱吃 骨头 吗？\n    -- 让我想一想...是\n    -- \"八公\" 是 v:爱吃 骨头 的 a:忠诚的 狗 吗？\n    -- 让我想一想...是\n    -- 骨头 v:爱吃 骨头 吗？\n    -- 让我想一想...不是\n    -- 狗 v:爱吃 什么 ？\n    -- 让我想一想...骨头\n    -- \"八公\" 是 什么样的 狗？\n    -- 让我想一想...忠诚的\n    -- \"八公\" v:喜欢 \"教授\"\n    -- 教授是什么?\n    -- \"教授\" 是 人\n    -- 人是什么?\n    -- 人 是一种 事物\n    -- 我知道了\n    -- \"八公\" v:喜欢 谁？\n    -- 让我想一想...教授\n\n## Word cutting\nApplying the technology of word cutting\n\n    Users:  \"八公\"是狗\n    AI:  狗是什么?\n    Users:  狗是一种动物\n    AI:  动物是什么?\n    Users:  动物是一种事物\n    AI: 我知道了\n    Users:  八公是狗吗？\n    AI: 让我想一想...是\n    Users:  狗是一种什么？\n    AI: 让我想一想...动物\n    Users:  狗喜欢骨头\n    AI:  骨头是什么?\n    Users:  狗狗我好喜欢\n    AI: 能再说一遍吗？\n    Users:  骨头是一种事物\n    AI: 我知道了\n    Users:  狗喜欢骨头吗？\n    AI: 让我想一想...是\n    Users:  八公喜欢骨头吗？\n    AI: 让我想一想...是\n    Users:  骨头喜欢骨头吗？\n    AI: 让我想一想...不是\n    Users:  狗喜欢什么？\n    AI: 让我想一想...骨头\n\n# Video\n[交互模式演示视频](https://www.bilibili.com/video/av66578713) (deprecated)\n\n[交互模式演示视频(分词)](https://www.bilibili.com/video/av69086776)(deprecated)\n\n\n[交互模式演示视频(分词改进)](https://www.bilibili.com/video/av70597500)\n[GUI演示视频](https://www.bilibili.com/video/av70597500?p=3)\n\n# Examples\n(English is not supported currently)\n```\n-- Who dose Alice love?\nI am thinking...\n-- What is Alice?\n-- Alice is a Thing.\n-- I get.\n-- Bob is a Thing.\n-- I get.\n-- Alice love Bob.\n-- I get.\n-- Who dose Alice love?\nI am thinking...\n-- Bob\n-- love is a sort of SymmetricProperty.\n-- I get.\n-- Who dose Bob love?\n-- Alice.\n--\n```\n\n```\n-- lily is a Thing.\n-- I get.\n-- Flower is a sort of Thing.\n-- I get.\n-- lily is a Flower.\n-- I get.\n-- Person is a sort of Thing.\n-- I get.\n-- lily is a Person.\n-- I get.\n-- Is lily a Person?\nI am thinking...\n-- Yes\n```\n\n# TODO\n- [x] 实现复合概念\n- [x] 实现分词\n- [x] GUI设计\n- [ ] 与机器学习方法结合\n- [x] 考虑主谓短语\n- [ ] 支持含数量的量词\n- [ ] 支持复合主语\n- [ ] 支持函数\n\n旧版的[“数字秘书”](https://github.com/Freakwill/assistant)完全没有逻辑推理能力，只能记录每次的问答对，以及简单的查询-输出。特别感谢[OwlReady](https://owlready2.readthedocs.io/en/latest/)的作者使我人机对话的梦想成真。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreakwill%2Fgimbiseo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreakwill%2Fgimbiseo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreakwill%2Fgimbiseo/lists"}