Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Make BeamSearch Registrable #5231

Merged
merged 5 commits into from
Jun 1, 2021

Conversation

JohnGiorgi
Copy link
Contributor

@JohnGiorgi JohnGiorgi commented May 29, 2021

Necessary for allenai/allennlp-models#267.

Changes proposed in this pull request:

  • Makes BeamSearch registrable with the name "beam_search"
  • Sets the default_implementation of BeamSearch as "beam_search"

Before submitting

  • I've read and followed all steps in the Making a pull request
    section of the CONTRIBUTING docs.
  • I've updated or added any relevant docstrings following the syntax described in the
    Writing docstrings section of the CONTRIBUTING docs.
  • If this PR fixes a bug, I've added a test that will fail without my fix.
  • If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

After submitting

  • All GitHub Actions jobs for my pull request have passed.
  • codecov/patch reports high test coverage (at least 90%).
    You can find this under the "Actions" tab of the pull request once the other checks have finished.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you @JohnGiorgi

@epwalsh epwalsh enabled auto-merge (squash) June 1, 2021 17:46
@epwalsh epwalsh merged commit 39d7e5a into allenai:main Jun 1, 2021
@JohnGiorgi JohnGiorgi deleted the make-beam-seach-registrable branch June 1, 2021 18:18
Abhishek-P pushed a commit to Abhishek-P/allennlp that referenced this pull request Aug 11, 2021
* Make BeamSearch Registrable

* Update changelog

* Remove unused import

* Update CHANGELOG.md

Co-authored-by: Pete <[email protected]>
Co-authored-by: Pete <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants