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

A question about SRL-English #3

Open
20w09 opened this issue Dec 12, 2021 · 2 comments
Open

A question about SRL-English #3

20w09 opened this issue Dec 12, 2021 · 2 comments

Comments

@20w09
Copy link

20w09 commented Dec 12, 2021

No description provided.

@20w09
Copy link
Author

20w09 commented Dec 12, 2021

Hello, excuse me, I trained my model as you instructed on Github, but when I trained the SRL verb model with (allennlp train bert_base_srl. jsonnet-s srl-bert-ontonotes-f), I reported an error “raise ConfigurationError ("Extra parameters passed to {}: {}". format (class_name, self.params)) allennlp.common.checks.ConfigurationError: "Extra parameters passed to SrlBert: {'mlp_hidden_si Ze ': 300,' predicate_emb_dim ': 128,' recurrent_hidden_layer_size ': 768}"”,
and when I want to train the model with (allennlp train bert_sense_srl. jsonnet-s verb-sense-srl-f-include-package verb_sense_srl), I report an error" lib/python3.8/site-packages/verb_sense_srl/reader. py ", line 342, in text_to_instance verb = tokens [verb_index]. tEXT IndexError: List index out of range". I trained step by step exactly as you instructed. May I ask if you know why? "

@moyutianque
Copy link

also encounter "index out of range" , error.
for example, sentence {"sentence": "I have my kids almost 50/50 these days , but it was a huge messy post divorce compromise that took a year to complete"} in verb_sense_srl prediction will reproduce this error.

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

2 participants