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

How to modify possible vocab in inverse_vocab #11

Open
lanyuchunmo opened this issue Jan 5, 2021 · 0 comments
Open

How to modify possible vocab in inverse_vocab #11

lanyuchunmo opened this issue Jan 5, 2021 · 0 comments

Comments

@lanyuchunmo
Copy link

Dear author,

When I was switching from p-mod to m-mod, I encountered a problem, I noticed a tip in the “Note” section that "To switch between m-mod and p-mod model, we need to comment/uncomment the possible vocab in inverse_vocab in nmt/input_config.py accordingly ('s', 't', 'y' at line 65, 67, 71)". But when I check the script "nmt/input_config.py", I found that these options ('s', 't', 'y') are located on lines 80, 82 and 86 of the file, respectively. Does this mean that if I want to switch to m-mod, I need to add a "#" to line 80, 83, and 86 to uncomment these lines ( Instead of line 65, 67 and 71).

image

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

1 participant