-
Notifications
You must be signed in to change notification settings - Fork 811
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
Raise AttributeError when attribute is unknown for torchtext.data.dataset #835
Comments
Could you try our new IMDB dataset in |
Ok, I just took a look at this. The short answer is that something like
The longer answer is that I tried to actually use this new dataset in this example. Is there any documentation on how these new experimental datasets play with
|
I believe the intention is that the new experimental datasets will not use the old |
That makes sense. I just stumbled upon this, which sheds some more light on the plans. I do hope that the current great functionality of Finally, it looks like I'll need to hack around a little to port this code over to this new design pattern. I'll have to learn where everything lives (e.g. tokenizers, custom pad tokens, pretrained vocab/embeddings, etc.). Currently, everything is very |
Yes. We want users to adopt those building blocks, instead of the "black box" |
🐛 Bug
Describe the bug
In short, an empty generator is created when calling
__getattr__
with an unknown attribute ontorchtext.data.dataset
. Here is code responsible for this. See a more complete explanation here: skorch-dev/skorch#605 (comment)To Reproduce
Steps to reproduce the behavior:
Expected behavior
If the attribute is not known, an
AttributeError
should be raised (as prescribed by the Python docs). However, for that to happen,__getattr__
should not be a generator.Environment
Additional context
The goal here is to be able to integrate torchtext with skorch and sklearn's
RandomizedSearchCV
. Here's a great example of torchtext working with skorch. We want to go one step further and make it work withRandomizedSearchCV
too.Please help make all these great tools work together :)
The text was updated successfully, but these errors were encountered: