Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

运行generate_hyps.py中的问题 #13

Open
freezed-corpse-143 opened this issue Oct 18, 2024 · 1 comment
Open

运行generate_hyps.py中的问题 #13

freezed-corpse-143 opened this issue Oct 18, 2024 · 1 comment

Comments

@freezed-corpse-143
Copy link

你好。我在准备运行如下任务时:
python generate_hyps.py \ --config config/jrc_ende/generate_hyps.yaml \ --num_beams 50 --num_return_sequences 50 \ --data_path ../data/jrc_ende/test.jsonl \ --pretrained_model_path your/trained/model/path --memory_encoding concate \ --memory_path ../data/jrc_ende/memory/bm25/test.txt \ --output_path output.txt
在准备这个../data/jrc_ende/memory/bm25/test.txt文件时,发现bm25.py文件有个query_lang参数。我处理的test.jsonl的数据格式为:
{“src": "xxx", "trg": "YYY"},请问我该如何设置query_lang

@123THU
Copy link

123THU commented Nov 7, 2024

这个原来的好像是按照另外一个任务(貌似是docmuent)写的,你可以去config配置文件那里对比一下,看看query_lang对应的是src/trg中的哪一个字段

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants