You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is already an CRF module on the repository called CRFwithConstraints that implements constrains for BIO and BIOES decoding, but it's only used in the definition for the TwoStageNERModel. I would like to use the constrained CRF on a simple BERT-CRF model with the SequenceLabelingModel class.
Describe the solution you'd like.
I think it is a simple solution, just add a new argument called constrain_crf that activates the CRFwithConstraints module:
Is your feature request related to a problem?
There is already an CRF module on the repository called CRFwithConstraints that implements constrains for BIO and BIOES decoding, but it's only used in the definition for the TwoStageNERModel. I would like to use the constrained CRF on a simple BERT-CRF model with the SequenceLabelingModel class.
Describe the solution you'd like.
I think it is a simple solution, just add a new argument called constrain_crf that activates the CRFwithConstraints module:
adaseq/models/sequence_labeling_model.py
To use the CRFwithConstraints on the config.yaml would be something like:
Describe alternatives you've considered.
No response
Additional context.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: