allenai / allennlp

An open-source NLP research library, built on PyTorch.
http://www.allennlp.org
Apache License 2.0
11.74k stars 2.25k forks source link

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

Closed iamlockelightning closed 2 years ago

iamlockelightning commented 2 years ago

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:

Before submitting

After submitting

dirkgr commented 2 years ago

I finished this in #5706. Thank you!