-
Notifications
You must be signed in to change notification settings - Fork 814
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
A Field of tensors #127
Comments
This should be possible after #119. Can you check out that PR branch and see if it solves your use case? |
actually, #119 doesn't quite address this (only fields of numbers, as opposed to a list of numbers). To elaborate more on the issue: In this use case, say you want to turn Perhaps we should have some other parameter for numeric types? Alternatively, maybe I'm thinking about this all wrong and there's a cleaner solution? |
True, it is tricky when it comes to float. I was assuming integers when I thought about it, in which case the padding is just another special number. Is there any use case for float? |
I found in OpenNMT/OpenNMT-py that they store dynamic information in each example: I think that would work as an walk around for this issue. |
I think #147 closes this too. |
I have an application where the target field is a list of integers, which should be directly converted to a vector. It doesn't require tokenization and numericalization. Is it currently possible with torchtext?
Specifically, the application is a pointer network where the target sequence is a list of indices pointing to the input sequence. It is useful for combinatorial problems.
The text was updated successfully, but these errors were encountered: