MWPToolkit
MWPToolkit copied to clipboard
Will numbers not in the question be treated as constants automatically?
Hi, I checked the documentation and didn't find any notes for constants. So will numbers not in the problem text, but in the equations, be automatically treated as constants and added to the decoder's vocabulary? Thanks!
you can view this page https://mwptoolkit.readthedocs.io/en/latest/mwptoolkit/mwptoolkit.utils.preprocess_tool.number_transfer.html
we name constants as generate numbers. these numbers will be added to decoder vocabulary automatically.
you could see 'min_generate_keep', a parameter of function number_transfer, which decide a number whether to keep as a generate number(whether to add to decoder vocabulary).
I hope the reply helps you.
you can view this page https://mwptoolkit.readthedocs.io/en/latest/mwptoolkit/mwptoolkit.utils.preprocess_tool.number_transfer.html
we name constants as generate numbers. these numbers will be added to decoder vocabulary automatically.
you could see 'min_generate_keep', a parameter of function number_transfer, which decide a number whether to keep as a generate number(whether to add to decoder vocabulary).
I hope the reply helps you.
Thanks, now I get it!