{"action":"closed","issue":{"url":"https://api.github.com/repos/allenai/allennlp/issues/994","repository_url":"https://api.github.com/repos/allenai/allennlp","labels_url":"https://api.github.com/repos/allenai/allennlp/issues/994/labels{/name}","comments_url":"https://api.github.com/repos/allenai/allennlp/issues/994/comments","events_url":"https://api.github.com/repos/allenai/allennlp/issues/994/events","html_url":"https://github.com/allenai/allennlp/issues/994","id":306246321,"number":994,"title":"Constituency Parsing CMD Error (from trained model)","user":{"login":"yanaiela","id":8031035,"avatar_url":"https://avatars3.githubusercontent.com/u/8031035?v=4","gravatar_id":"","url":"https://api.github.com/users/yanaiela","html_url":"https://github.com/yanaiela","followers_url":"https://api.github.com/users/yanaiela/followers","following_url":"https://api.github.com/users/yanaiela/following{/other_user}","gists_url":"https://api.github.com/users/yanaiela/gists{/gist_id}","starred_url":"https://api.github.com/users/yanaiela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanaiela/subscriptions","organizations_url":"https://api.github.com/users/yanaiela/orgs","repos_url":"https://api.github.com/users/yanaiela/repos","events_url":"https://api.github.com/users/yanaiela/events{/privacy}","received_events_url":"https://api.github.com/users/yanaiela/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-18T14:45:41Z","updated_at":"2018-03-19T16:10:48Z","closed_at":"2018-03-19T16:10:48Z","author_association":"NONE","body":"Hey,\r\n\r\nI wanted to try out the constituency parser using the Elmo embedding.\r\nI followed the package installation process, with no problems and then tried to use the trained model using [this example](http://allennlp.org/models) but encountered the following exception:\r\n\r\n> Traceback (most recent call last):\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/run.py\", line 18, in <module>\r\n    main(prog=\"python -m allennlp.run\")\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/commands/__init__.py\", line 67, in main\r\n    args.func(args)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/commands/predict.py\", line 172, in predict_inner\r\n    predictor = _get_predictor(args, predictors)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/commands/predict.py\", line 114, in _get_predictor\r\n    overrides=args.overrides)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/models/archival.py\", line 149, in load_archive\r\n    cuda_device=cuda_device)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/models/model.py\", line 233, in load\r\n    model = Model.from_params(vocab, model_params)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/models/model.py\", line 184, in from_params\r\n    model = cls.by_name(choice).from_params(vocab, params)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/models/constituency_parser.py\", line 431, in from_params\r\n    params.assert_empty(cls.__name__)\r\n  File \"/home/nlp/lazary/anaconda2/envs/allennlp/lib/python3.6/site-packages/allennlp/common/params.py\", line 246, in assert_empty\r\n    raise ConfigurationError(\"Extra parameters passed to {}: {}\".format(class_name, self.params))\r\nallennlp.common.checks.ConfigurationError: \"Extra parameters passed to SpanConstituencyParser: ConfigTree([('pos_tag_embedding', ConfigTree([('embedding_dim', 50), ('vocab_namespace', 'pos')]))])\"\r\n\r\n\r\nFor a sanity check, I also tried the NER classifier and it worked without any issues."}}
{"actor":{"display_login":"yanaiela"}}