mirror of
https://github.com/tanyuqian/knowledge-harvest-from-lms.git
synced 2023-06-02 01:35:42 +03:00
467 B
467 B
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
