We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: