MWPToolkit icon indicating copy to clipboard operation
MWPToolkit copied to clipboard

Will numbers not in the question be treated as constants automatically?

Open lijierui opened this issue 2 years ago • 2 comments

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!

lijierui avatar Nov 06 '21 08:11 lijierui

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.

LYH-YF avatar Nov 09 '21 01:11 LYH-YF

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!

lijierui avatar Nov 10 '21 21:11 lijierui