AlibabaResearch / AlibabaResearch/HLATR
read_qrel
オープン
- 主要言語
- Python
- スター
- 76
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
In this funion have the "qrel[qid] = pid",but if there are many passages for one query, such as MS MARCO dataset, there will be wrong.
def read_qrel(self, qrel_file):
qrel = {}
with open(qrel_file, 'r', encoding='utf8') as f:
for line in f:
line = line.strip()
seg = line.split('\t')
qid, pid = seg[0], seg[2]
qrel[qid] = pid
print ("Finish reading qrel dict")
return qrel
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。