-
Notifications
You must be signed in to change notification settings - Fork 617
Added filtered_input and constrained_decoding #2166
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
Added filtered_input and constrained_decoding #2166
Conversation
- Fixes tensorflow#607 We can have a common function for creating filtered_inputs used in crf_multitag_sequence_score This function can be reused to modify the input to crf_decode to support constrained decoding.
|
@facaiy @Squadrick @seanpmorgan can you have a look at it? |
WindQAQ
left a comment
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.
LGTM! One minor documentation issue.
|
@napsternxg Can you run the formatting tools again? I'd like to merge this after the tests pass. Thank you! |
|
@WindQAQ Fixed it. |
WindQAQ
left a comment
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.
Thank you!
|
@Squadrick was removed by mistake when I clicked on request review. |
* Added filtered_input and constrained_decoding - Fixes tensorflow#607 We can have a common function for creating filtered_inputs used in crf_multitag_sequence_score This function can be reused to modify the input to crf_decode to support constrained decoding. * Fixed formatting and imports * Fixed documentation * Fixed formatting
Description
Brief Description of the PR:
We can have a common function for creating filtered_inputs used in
crf_multitag_sequence_scoreThis function can be reused to modify the input to
crf_decodeto support constrained decoding.Fixes #607
Type of change
Checklist:
How Has This Been Tested?
If you're adding a bugfix or new feature please describe the tests that you ran to verify your changes: