mirror of
https://github.com/tanyuqian/knowledge-harvest-from-lms.git
synced 2023-06-02 01:35:42 +03:00
5a094db63cf6963c01eb4bc6ce26f32c29a38bd3
BertNet: Harvesting Knowledge Graphs from PLMs
Environment
We use python 3.8 and all the required packages can be installed by pip:
pip install -r requirements.txt
Prompt Creation
python search_prompts.py --rel_set conceptnet (lama/human)
Entity Pair Search
python main.py --rel_set conceptnet --model_name roberta-large
Present results
python present_result.py --result_dir your_result_dir
Description
ACL 2023 (Findings) - BertNet: Harvesting Knowledge Graphs from Pretrained Language Models
Readme
52 MiB
Languages
Python
100%
