{"id":13754364,"url":"https://github.com/lemonhu/open-entity-relation-extraction","last_synced_at":"2025-04-05T14:07:04.048Z","repository":{"id":41092709,"uuid":"137875619","full_name":"lemonhu/open-entity-relation-extraction","owner":"lemonhu","description":"Knowledge triples extraction and knowledge base construction based on dependency syntax for open domain text.","archived":false,"fork":false,"pushed_at":"2019-08-26T11:50:50.000Z","size":299,"stargazers_count":532,"open_issues_count":9,"forks_count":121,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-29T13:08:58.169Z","etag":null,"topics":["entity-relation","information-extraction","knowledge-base","knowledge-extraction","open-domain","paper-implementations","python3","relation-extraction"],"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/lemonhu.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}},"created_at":"2018-06-19T10:20:10.000Z","updated_at":"2025-03-14T07:09:05.000Z","dependencies_parsed_at":"2022-07-14T08:17:12.215Z","dependency_job_id":null,"html_url":"https://github.com/lemonhu/open-entity-relation-extraction","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/lemonhu%2Fopen-entity-relation-extraction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonhu%2Fopen-entity-relation-extraction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonhu%2Fopen-entity-relation-extraction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonhu%2Fopen-entity-relation-extraction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemonhu","download_url":"https://codeload.github.com/lemonhu/open-entity-relation-extraction/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247345853,"owners_count":20924102,"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":["entity-relation","information-extraction","knowledge-base","knowledge-extraction","open-domain","paper-implementations","python3","relation-extraction"],"created_at":"2024-08-03T09:01:56.942Z","updated_at":"2025-04-05T14:07:04.030Z","avatar_url":"https://github.com/lemonhu.png","language":"Python","readme":"# open-entity-relation-extraction\n\nKnowledge triples extraction (entities and relations extraction) and knowledge base construction based on dependency syntax for open domain text.\n\n基于依存句法分析，实现面向开放域文本的知识三元组抽取（实体和关系抽取）及知识库构建。\n\nWelcome to watch, star or fork.\n\n## Example\n\n\u003e \"中国国家主席习近平访问韩国，并在首尔大学发表演讲\"\n\nWe can extract knowledge triples from the sentence as follows:\n\n- (中国, 国家主席, 习近平)\n- (习近平, 访问, 韩国)\n- (习近平, 发表演讲, 首尔大学)\n\n## Project Structure\n\n```\nknowledge_extraction/\n|-- code/  # code directory\n|   |-- bean/\n|   |-- core/\n|   |-- demo/  # procedure entry\n|   |-- tool/\n|-- data/ # data directory\n|   |-- input_text.txt  # input text file\n|   |-- knowledge_triple.json  # output knowledge triples file\n|-- model/  # ltp models, can be downloaded from http://ltp.ai/download.html, select ltp_data_v3.4.0.zip\n|-- resource  # dictionaries dirctory\n|-- requirements.txt  # dependent python libraries\n|-- README.md  # project description\n```\n\n## Requirements\n\nThis repo was tested on Python 3.5+. The requirements are:\n\n- jieba\u003e=0.39\n- pyltp\u003e=0.2.1\n\n## Quickstart\n\n```shell\ncd ./code/demo/\npython extract_demo.py\n```\n\n## Seven DSNF paradigms\n\n![DSNF](./img/DSNF.png)\n\n## References\n\nIf you use the code, please kindly cite the following paper:\n\nJia S, Li M, Xiang Y. Chinese Open Relation Extraction and Knowledge Base Establishment[J]. ACM Transactions on Asian and Low-Resource Language Information Processing (TALLIP), 2018, 17(3): 15.\n","funding_links":[],"categories":["关系抽取、信息抽取"],"sub_categories":["其他_文本生成、文本对话"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonhu%2Fopen-entity-relation-extraction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemonhu%2Fopen-entity-relation-extraction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonhu%2Fopen-entity-relation-extraction/lists"}