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

Add allowed_transitions in __init__.py of crf mod. #5697

Conversation

iamlockelightning
Copy link
Contributor

Fix ImportError:
from allennlp.modules.conditional_random_field import allowed_transitions
ImportError: cannot import name 'allowed_transitions' from 'allennlp.modules.conditional_random_field'

Fixes #5695.

Changes proposed in this pull request:

  • Fix ImportError of allowed_transitions

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.

Fix ImportError:
from allennlp.modules.conditional_random_field import allowed_transitions
ImportError: cannot import name 'allowed_transitions' from 'allennlp.modules.conditional_random_field'
@dirkgr dirkgr enabled auto-merge (squash) August 18, 2022 18:31
@dirkgr dirkgr self-assigned this Aug 24, 2022
@dirkgr dirkgr mentioned this pull request Aug 24, 2022
@dirkgr
Copy link
Member

dirkgr commented Aug 24, 2022

I finished this in #5706. Thank you!

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.

cannot import name 'allowed_transitions' from 'allennlp.modules.conditional_random_field'
2 participants