zjunlp / DeepKE

[EMNLP 2022] An Open Toolkit for Knowledge Graph Extraction and Construction
http://deepke.zjukg.cn/
MIT License
3.41k stars 675 forks source link

请问 KnowLM-IE 对应的 NER 数据集怎么转换,或者有下载地址吗 #330

Closed suncheng-s closed 1 year ago

suncheng-s commented 1 year ago

Describe the question 请问 KnowLM-IE 对应的 NER 数据集怎么转换,或者有下载地址吗

guihonghao commented 1 year ago

https://huggingface.co/datasets/zjunlp/knowlm-ke/resolve/main/ner_train.json 这个是KnowLM-13b-IE训练用到的中文NER数据集,你可以通过改写 https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/evaluate.py 脚本,将输出字符串转换为列表。

suncheng-s commented 1 year ago

https://huggingface.co/datasets/zjunlp/knowlm-ke/resolve/main/ner_train.json 这个是KnowLM-13b-IE训练用到的中文NER数据集,你可以通过改写 https://github.com/zjunlp/DeepKE/blob/main/example/llm/InstructKGC/kg2instruction/evaluate.py 脚本,将输出字符串转换为列表。

谢谢啦,7 万数据也挺多的。