E:\LSAN-master\LSAN-master\utils.py:19: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. return AttrDict(yaml.load(open(path, 'r'))) loading data... Traceback (most recent call last): File "E:\LSAN-master\LSAN-master\classification.py", line 11, in <module> train_loader, test_loader, label_embed,embed,X_tst,word_to_id,Y_tst,Y_trn = data_got.load_data(batch_size=config.batch_size) File "E:\LSAN-master\LSAN-master\data_got.py", line 6, in load_data X_tst = np.load(r"/data/blchen/text/preprocessed/AAPD/X_test.npy") File "D:\Anaconda3\envs\pytorchEnv\lib\site-packages\numpy\lib\npyio.py", line 372, in load fid = open(file, "rb") FileNotFoundError: [Errno 2] No such file or directory: '/data/blchen/text/preprocessed/AAPD/X_test.npy'
时间: 2024-04-28 14:22:29 浏览: 159
EMNLP2019论文LSAN模型源代码
这是一个错误提示信息,看起来是在加载数据时出现了问题。具体来说,它似乎无法找到指定的文件 '/data/blchen/text/preprocessed/AAPD/X_test.npy'。这可能是由于文件名或路径错误、文件不存在或权限不足等原因引起的。您可以仔细检查文件名、文件路径和文件权限,以确保文件存在并且您有足够的权限读取它。
阅读全文