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

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

Open
lijierui opened this issue Nov 6, 2021 · 2 comments
Open

Comments

@lijierui
Copy link

lijierui commented Nov 6, 2021

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!

@LYH-YF
Copy link
Owner

LYH-YF commented Nov 9, 2021

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.

@lijierui
Copy link
Author

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!

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

No branches or pull requests

2 participants