├── .gitignore ├── LICENSE ├── README.md ├── code ├── bean │ ├── __init__.py │ ├── entity_pair.py │ ├── sentence_unit.py │ └── word_unit.py ├── core │ ├── __init__.py │ ├── entity_combine.py │ ├── extract_by_dsnf.py │ ├── extractor.py │ └── nlp.py ├── demo │ ├── __init__.py │ └── extract_demo.py └── tool │ ├── __init__.py │ ├── append_to_json.py │ └── process_thu_lexicon.py ├── data ├── input_text.txt └── knowledge_triple.json ├── img └── DSNF.png ├── requirements.txt └── resource ├── THUOCL_law_lexicon.txt └── legal_instrument_lexicon.txt /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/README.md -------------------------------------------------------------------------------- /code/bean/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/bean/entity_pair.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/bean/entity_pair.py -------------------------------------------------------------------------------- /code/bean/sentence_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/bean/sentence_unit.py -------------------------------------------------------------------------------- /code/bean/word_unit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/bean/word_unit.py -------------------------------------------------------------------------------- /code/core/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/core/entity_combine.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/core/entity_combine.py -------------------------------------------------------------------------------- /code/core/extract_by_dsnf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/core/extract_by_dsnf.py -------------------------------------------------------------------------------- /code/core/extractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/core/extractor.py -------------------------------------------------------------------------------- /code/core/nlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/core/nlp.py -------------------------------------------------------------------------------- /code/demo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/demo/extract_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/demo/extract_demo.py -------------------------------------------------------------------------------- /code/tool/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/tool/append_to_json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/tool/append_to_json.py -------------------------------------------------------------------------------- /code/tool/process_thu_lexicon.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/code/tool/process_thu_lexicon.py -------------------------------------------------------------------------------- /data/input_text.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/data/input_text.txt -------------------------------------------------------------------------------- /data/knowledge_triple.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/data/knowledge_triple.json -------------------------------------------------------------------------------- /img/DSNF.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/img/DSNF.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | jieba 2 | pyltp==0.2.1 3 | -------------------------------------------------------------------------------- /resource/THUOCL_law_lexicon.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/resource/THUOCL_law_lexicon.txt -------------------------------------------------------------------------------- /resource/legal_instrument_lexicon.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lemonhu/open-entity-relation-extraction/HEAD/resource/legal_instrument_lexicon.txt --------------------------------------------------------------------------------