Skip to content

Commit

Permalink
change raw to metadata (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronakice authored Sep 8, 2020
1 parent f692da6 commit 94befbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygaggle/model/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ def write(self, scores: List[float], example: RelevanceExample):
doc_scores = sorted(list(zip(example.documents, scores)),
key=lambda x: x[1], reverse=True)
for ct, (doc, score) in enumerate(doc_scores):
self.write_line(f"{example.query.id}\t{doc.raw['docid']}\t{ct+1}")
self.write_line(f"{example.query.id}\t{doc.metadata['docid']}\t{ct+1}")

1 comment on commit 94befbd

@justinborromeo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about this, I forgot to push my last commit making this change.

Please sign in to comment.