DreamH1gh / TACL2024

Retrieval-style In-Context Learning for Few-shot Hierarchical Text Classification
2 stars 1 forks source link

No such file or directory: 'dataset/DBpedia/formatted_data/label2.txt' #1

Open qinhuangdaoStation opened 1 week ago

qinhuangdaoStation commented 1 week ago

运行 DCL目录下的train.py的时候,产生了如下报错,然后发现,无论是wos还是dbp,都会有一些xxx.txt的文件错误,请问可以分享相关的数据吗? 打扰了,感谢感谢

label2 = [line.strip() for line in open(os.path.join(data_path, "formatted_data", "label2.txt")).readlines()] FileNotFoundError: [Errno 2] No such file or directory: 'dataset/DBpedia/formatted_data/label2.txt'

DreamH1gh commented 1 day ago

The formatted_data files represent the label names for corresponding hierarchical levels, with one label per line.

I have already updated this on Github (e.g. WOS), thank you for your feedback.