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

Implementing __contains__ for vocab.Vectors class #2140

Closed
saeeddhqan opened this issue Apr 4, 2023 · 2 comments · Fixed by #2144
Closed

Implementing __contains__ for vocab.Vectors class #2140

saeeddhqan opened this issue Apr 4, 2023 · 2 comments · Fixed by #2144

Comments

@saeeddhqan
Copy link
Contributor

saeeddhqan commented Apr 4, 2023

🚀 Feature

Isn't it better to implement __contains__ for Vectors class? In this way, one can easily find out whether a vocab is in the self.itos or not.

@joecummings
Copy link
Contributor

Thanks for opening an issue @saeeddhqan! If you want to propose this feature, we can help with testing and approving.

@saeeddhqan
Copy link
Contributor Author

I created the PR. Looking forward to hear from you!

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 a pull request may close this issue.

2 participants