Open_QG icon indicating copy to clipboard operation
Open_QG copied to clipboard

开源QG系统(Question Generation,问题生成),基于Pytorch和Transformer编写

Results 4 Open_QG issues
Sort by recently updated
recently updated
newest added

你好,打扰了,我是直接跳过前面预处理直接模型训练,但是提示我 这个部分中的data字典里没有params,我输出data字典之后,也确实没有找到’params’,下面是报错的代码块 ` # 从已保存的pt文件中读取数据 # 包括:vocab,训练集/验证集各自的输入/输出索引序列 data = torch.load(params.temp_pt_file) vocab = data['vocab'] params = data['params']` 这data里面是train_input_indices、train_output_indices、dev_input_indices、dev_output_indices、test_input_indices、test_output_indices

测试的时候显示: File "F:\code\自动问题生成\Open_QG-master\Open_QG-master\src\beam.py", line 235, in get_hypothesis hyp.append(self.next_ys[j + 1][k]) IndexError: tensors used as indices must be long, byte or bool tensors 求帮助!

Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.22.0 to 4.66.3. Release notes Sourced from tqdm's releases. tqdm v4.66.3 stable cli: eval safety (fixes CVE-2024-34062, GHSA-g7vv-2v7x-gj9p) tqdm v4.66.2 stable pandas: add DataFrame.progress_map (#1549) notebook: fix...

dependencies

Bumps [torch](https://github.com/pytorch/pytorch) from 0.4.1 to 2.2.0. Release notes Sourced from torch's releases. PyTorch 2.2: FlashAttention-v2, AOTInductor PyTorch 2.2 Release Notes Highlights Backwards Incompatible Changes Deprecations New Features Improvements Bug fixes...

dependencies