tricktreat / PromptNER

Code for the paper "PromptNER: Prompt Locating and Typing for Named Entity Recognition", accepted at ACL 2023.
85 stars 7 forks source link

How do I get the JSON file #7

Closed T00ler closed 9 months ago

T00ler commented 11 months ago

Hi, I want to know how to get the JSON file. The uploaded file is in txt format, but it seems that the source code needs to be converted to JSON format before it can be used. And 'mit-movie_types.json' is also not in the dataset. However, no tool class for conversion was found in the source code.

wanglu1214 commented 9 months ago

mit-movie_types.json文件不在数据集中,这个问题你最终是如何解决的呀

T00ler commented 9 months ago

mit-movie_types.json文件不在数据集中,这个问题你最终是如何解决的呀

作者只提供了txt文件,你可能得自己写一个方法给他转成作者要求的json格式的样子。

tricktreat commented 9 months ago

已上传ner2json.py到Google云盘里,以转化.txt.json

mit-movie_types.json文件不在数据集中,这个问题你最终是如何解决的呀