-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Source features support for V2.0 #2090
Changes from 3 commits
76ca20e
a8190ab
80d20f9
c722028
ad94f21
e79ec8a
2f15edd
5a31039
1d785b9
a76c737
0909e31
d68f010
ab8dd7a
1f360e1
22e0e0d
4e5e537
1e1c540
a0bd55f
f5b1eef
705b94f
d18392c
a736103
ee7de03
bd4a01d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -320,4 +320,4 @@ def validate_train_opts(cls, opt): | |
|
||
@classmethod | ||
def validate_translate_opts(cls, opt): | ||
pass | ||
opt.src_feats = eval(opt.src_feats) if opt.src_feats else {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this line? What's the expected input for this argument? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it's not a list of paths, it's a dictionary mapping feature names with the corresponding file path. Like this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, that's reasonable then. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the key part of the last change