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

Error when I run consti and consti_conll #9

Open
Boltzmachine opened this issue Mar 30, 2022 · 0 comments
Open

Error when I run consti and consti_conll #9

Boltzmachine opened this issue Mar 30, 2022 · 0 comments

Comments

@Boltzmachine
Copy link

Traceback (most recent call last):
  File "/home/user/miniconda3/envs/spanrel/bin/allennlp", line 8, in <module>
    sys.exit(run())
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/run.py", line 18, in run
    main(prog="allennlp")
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/commands/__init__.py", line 102, in main
    args.func(args)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/commands/train.py", line 116, in train_model_from_args
    args.cache_prefix)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/commands/train.py", line 160, in train_model_from_file
    cache_directory, cache_prefix)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/commands/train.py", line 218, in train_model
    cache_prefix)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/training/trainer.py", line 793, in from_params
    model = Model.from_params(vocab=vocab, params=params.pop('model'))
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/common/from_params.py", line 365,
in from_params
    return subclass.from_params(params=params, **extras)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/common/from_params.py", line 388,
in from_params
    return cls(**kwargs)  # type: ignore
  File "./brat_multitask/models/brat_multitask.py", line 193, in __init__
    bucket_widths=bucket_widths)
  File "/home/user/miniconda3/envs/spanrel/lib/python3.6/site-packages/allennlp/modules/span_extractors/endpoint_span_extractor.py", line 72, in __init__
    raise ConfigurationError("To use a span width embedding representation, you must"
allennlp.common.checks.ConfigurationError: 'To use a span width embedding representation, you mustspecify both num_width_buckets and span_width_embedding_dim.'
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