Skip to content
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

Training_Dependency_Based_Model #19

Open
LeonHammerla opened this issue May 4, 2022 · 1 comment
Open

Training_Dependency_Based_Model #19

LeonHammerla opened this issue May 4, 2022 · 1 comment

Comments

@LeonHammerla
Copy link

The config jsonnet for the bert-base model (bert_base_dep.jsonnet) has the following lines:

"model": {
"type": "transformer_srl_span",
"embedding_dropout": 0.1,
"bert_model": "bert-base-cased",
},

which should be transformer_srl_dependency??? When changing to dependency running and training of the model results in an ERROR

When trying to train a model based on the bert_tiny_dep.jsonnet (which has the correct model-type) training also results in an ERROR, stating:

TypeError: forward() got an unexpected keyword argument 'sentence_end'

@LeonHammerla
Copy link
Author

possible fix: add **kwargs to forward method in model.py of transformer_srl_dependency model?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant