# open-entity-relation-extraction
Knowledge triples extraction (entities and relations extraction) and knowledge base construction based on dependency syntax for open domain text.
基于依存句法分析,实现面向开放域文本的知识三元组抽取(实体和关系抽取)及知识库构建。
Welcome to watch, star or fork.
## Example
> "中国国家主席习近平访问韩国,并在首尔大学发表演讲"
We can extract knowledge triples from the sentence as follows:
- (中国, 国家主席, 习近平)
- (习近平, 访问, 韩国)
- (习近平, 发表演讲, 首尔大学)
## Project Structure
```
knowledge_extraction/
|-- code/ # code directory
| |-- bean/
| |-- core/
| |-- demo/ # procedure entry
| |-- tool/
|-- data/ # data directory
| |-- input_text.txt # input text file
| |-- knowledge_triple.json # output knowledge triples file
|-- model/ # ltp models, can be downloaded from http://ltp.ai/download.html, select ltp_data_v3.4.0.zip
|-- resource # dictionaries dirctory
|-- requirements.txt # dependent python libraries
|-- README.md # project description
```
## Requirements
This repo was tested on Python 3.5+. The requirements are:
- jieba>=0.39
- pyltp>=0.2.1
## Quickstart
```shell
cd ./code/demo/
python extract_demo.py
```
## Seven DSNF paradigms
![DSNF](./img/DSNF.png)
## References
If you use the code, please kindly cite the following paper:
Jia 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.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
open-entity-relation-extraction-master.zip (23个子文件)
open-entity-relation-extraction-master
img
DSNF.png 193KB
data
knowledge_triple.json 1KB
input_text.txt 293B
LICENSE 1KB
resource
legal_instrument_lexicon.txt 45KB
THUOCL_law_lexicon.txt 239KB
code
core
extractor.py 4KB
entity_combine.py 4KB
__init__.py 0B
extract_by_dsnf.py 24KB
nlp.py 7KB
bean
word_unit.py 2KB
entity_pair.py 506B
sentence_unit.py 2KB
__init__.py 0B
tool
process_thu_lexicon.py 1KB
__init__.py 0B
append_to_json.py 708B
demo
__init__.py 0B
extract_demo.py 1KB
requirements.txt 19B
.gitignore 1KB
README.md 2KB
共 23 条
- 1
资源评论
- weixin_439159182022-08-15超级好的资源,很值得参考学习,对我启发很大,支持!
博士僧小星
- 粉丝: 1684
- 资源: 5875
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功