{"action":"opened","issue":{"url":"https://api.github.com/repos/deepmipt/DeepPavlov/issues/323","repository_url":"https://api.github.com/repos/deepmipt/DeepPavlov","labels_url":"https://api.github.com/repos/deepmipt/DeepPavlov/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/deepmipt/DeepPavlov/issues/323/comments","events_url":"https://api.github.com/repos/deepmipt/DeepPavlov/issues/323/events","html_url":"https://github.com/deepmipt/DeepPavlov/issues/323","id":340977746,"node_id":"MDU6SXNzdWUzNDA5Nzc3NDY=","number":323,"title":"Cannot run NER","user":{"login":"zoomwe","id":41191239,"node_id":"MDQ6VXNlcjQxMTkxMjM5","avatar_url":"https://avatars2.githubusercontent.com/u/41191239?v=4","gravatar_id":"","url":"https://api.github.com/users/zoomwe","html_url":"https://github.com/zoomwe","followers_url":"https://api.github.com/users/zoomwe/followers","following_url":"https://api.github.com/users/zoomwe/following{/other_user}","gists_url":"https://api.github.com/users/zoomwe/gists{/gist_id}","starred_url":"https://api.github.com/users/zoomwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoomwe/subscriptions","organizations_url":"https://api.github.com/users/zoomwe/orgs","repos_url":"https://api.github.com/users/zoomwe/repos","events_url":"https://api.github.com/users/zoomwe/events{/privacy}","received_events_url":"https://api.github.com/users/zoomwe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-13T11:05:55Z","updated_at":"2018-07-13T11:05:55Z","closed_at":null,"author_association":"NONE","body":"Hi, thank you very much for such a great tool!\r\n\r\nI am trying to run NER (ner_conll2003.json) model in API  mode with the following command\r\n\r\n`python -m deeppavlov riseapi deeppavlov/configs/ner/ner_conll2003.json`\r\n\r\nI set use_cudnn_rnn: false because I don't have GPU\r\n\r\nBut still for some reason I got an error message\r\n\r\n```\r\npython -m deeppavlov riseapi deeppavlov/configs/ner/ner_conll2003_pos.json \r\n/home/com/miniconda2/envs/py362/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\r\n  from ._conv import register_converters as _register_converters\r\nUsing TensorFlow backend.\r\n[nltk_data] Downloading package punkt to /home/com/nltk_data...\r\n[nltk_data]   Package punkt is already up-to-date!\r\n[nltk_data] Downloading package stopwords to /home/com/nltk_data...\r\n[nltk_data]   Package stopwords is already up-to-date!\r\n[nltk_data] Downloading package perluniprops to /home/com/nltk_data...\r\n[nltk_data]   Package perluniprops is already up-to-date!\r\n[nltk_data] Downloading package nonbreaking_prefixes to\r\n[nltk_data]     /home/com/nltk_data...\r\n[nltk_data]   Package nonbreaking_prefixes is already up-to-date!\r\n2018-07-13 19:11:00.725 DEBUG in 'gensim.models.doc2vec'['doc2vec'] at line 73: Fast version of gensim.models.doc2vec is being used\r\n2018-07-13 19:11:00.731 INFO in 'summa.preprocessing.cleaner'['textcleaner'] at line 20: 'pattern' package not found; tag filters are not available for English\r\n2018-07-13 19:11:11.118 INFO in 'deeppavlov.core.data.simple_vocab'['simple_vocab'] at line 94: [loading vocabulary from /home/com/Shared/DeepPavlov/download/ner_conll2003/word.dict]\r\n2018-07-13 19:11:11.145 INFO in 'deeppavlov.core.data.simple_vocab'['simple_vocab'] at line 94: [loading vocabulary from /home/com/Shared/DeepPavlov/download/ner_conll2003/tag.dict]\r\n2018-07-13 19:11:11.146 INFO in 'deeppavlov.core.data.simple_vocab'['simple_vocab'] at line 94: [loading vocabulary from /home/com/Shared/DeepPavlov/download/ner_conll2003/char.dict]\r\n2018-07-13 19:11:11.147 INFO in 'deeppavlov.models.embedders.glove_embedder'['glove_embedder'] at line 60: [loading embeddings from `/home/com/Shared/DeepPavlov/download/embeddings/glove.6B.100d.txt`]\r\n2018-07-13 19:11:11.147 INFO in 'gensim.models.keyedvectors'['keyedvectors'] at line 204: loading projection weights from /home/com/Shared/DeepPavlov/download/embeddings/glove.6B.100d.txt\r\n2018-07-13 19:11:11.148 DEBUG in 'smart_open.smart_open_lib'['smart_open_lib'] at line 149: {'kw': {}, 'mode': 'rb', 'uri': '/home/com/Shared/DeepPavlov/download/embeddings/glove.6B.100d.txt'}\r\n2018-07-13 19:11:11.149 DEBUG in 'smart_open.smart_open_lib'['smart_open_lib'] at line 621: encoding_wrapper: {'errors': 'strict', 'encoding': None, 'mode': 'rb', 'fileobj': <_io.BufferedReader name='/home/com/Shared/DeepPavlov/download/embeddings/glove.6B.100d.txt'>}\r\n2018-07-13 19:11:56.690 INFO in 'gensim.models.keyedvectors'['keyedvectors'] at line 266: loaded (400000, 100) matrix from /home/com/Shared/DeepPavlov/download/embeddings/glove.6B.100d.txt\r\n2018-07-13 19:11:57.751 ERROR in 'deeppavlov.core.common.params'['params'] at line 123: Exception in <class 'deeppavlov.models.ner.network.NerNetwork'>\r\nTraceback (most recent call last):\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/common/params.py\", line 117, in from_params\r\n    component = cls(**dict(config_params, **kwargs))\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 47, in __call__\r\n    obj.__init__(*args, **kwargs)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 28, in _wrapped\r\n    return func(*args, **kwargs)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/models/ner/network.py\", line 104, in __init__\r\n    units = self._build_rnn(features, n_hidden_list, cell_type, intra_layer_dropout, self.mask_ph,)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 28, in _wrapped\r\n    return func(*args, **kwargs)\r\nTypeError: _build_rnn() takes 5 positional arguments but 6 were given\r\nTraceback (most recent call last):\r\n  File \"/home/com/miniconda2/envs/py362/lib/python3.6/runpy.py\", line 193, in _run_module_as_main\r\n    \"__main__\", mod_spec)\r\n  File \"/home/com/miniconda2/envs/py362/lib/python3.6/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/__main__.py\", line 3, in <module>\r\n    main()\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/deep.py\", line 75, in main\r\n    start_model_server(pipeline_config_path)\r\n  File \"/home/com/Shared/DeepPavlov/utils/server_utils/server.py\", line 91, in start_model_server\r\n    model = init_model(model_config_path)\r\n  File \"/home/com/Shared/DeepPavlov/utils/server_utils/server.py\", line 25, in init_model\r\n    model = build_model_from_config(model_config)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/commands/infer.py\", line 42, in build_model_from_config\r\n    component = from_params(component_config, mode=mode)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/common/params.py\", line 117, in from_params\r\n    component = cls(**dict(config_params, **kwargs))\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 47, in __call__\r\n    obj.__init__(*args, **kwargs)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 28, in _wrapped\r\n    return func(*args, **kwargs)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/models/ner/network.py\", line 104, in __init__\r\n    units = self._build_rnn(features, n_hidden_list, cell_type, intra_layer_dropout, self.mask_ph,)\r\n  File \"/home/com/Shared/DeepPavlov/deeppavlov/core/models/tf_backend.py\", line 28, in _wrapped\r\n    return func(*args, **kwargs)\r\nTypeError: _build_rnn() takes 5 positional arguments but 6 were given\r\n```"}}
{"actor":{"display_login":"zoomwe"}}