Skip to content
New issue

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

Fixed Document Title Type Mismatch #145

Merged

Conversation

KaiSun314
Copy link
Collaborator

@KaiSun314 KaiSun314 commented Jan 13, 2021

When replicating fh of "PyGaggle: Baselines on MS MARCO Document Retrieval," I got the error:
Screenshot from 2021-01-13 00-44-11

It seems that document titles default to None instead of '' (empty string) (see class Text in pygaggle/rerank/base.py), so I added an extra condition in the if statement to prevent type mismatch (pygaggle/data/segmentation.py).

The error from fh of the replication task no longer appears after this change.
However, I got somewhat different results from the replication document results (same as #137 (comment) though):
Screenshot from 2021-01-13 13-06-36

Copy link
Member

@ronakice ronakice left a comment

Choose a reason for hiding this comment

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

Thanks for catching this 💯

@ronakice ronakice merged commit 2dbd4c0 into castorini:master Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants