{"action":"created","issue":{"url":"https://api.github.com/repos/bluemonk482/tdparse/issues/4","repository_url":"https://api.github.com/repos/bluemonk482/tdparse","labels_url":"https://api.github.com/repos/bluemonk482/tdparse/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/bluemonk482/tdparse/issues/4/comments","events_url":"https://api.github.com/repos/bluemonk482/tdparse/issues/4/events","html_url":"https://github.com/bluemonk482/tdparse/issues/4","id":316133863,"number":4,"title":"IndexError: index 0 is out of bounds for axis 0 with size 0","user":{"login":"monajalal","id":1892917,"avatar_url":"https://avatars3.githubusercontent.com/u/1892917?v=4","gravatar_id":"","url":"https://api.github.com/users/monajalal","html_url":"https://github.com/monajalal","followers_url":"https://api.github.com/users/monajalal/followers","following_url":"https://api.github.com/users/monajalal/following{/other_user}","gists_url":"https://api.github.com/users/monajalal/gists{/gist_id}","starred_url":"https://api.github.com/users/monajalal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monajalal/subscriptions","organizations_url":"https://api.github.com/users/monajalal/orgs","repos_url":"https://api.github.com/users/monajalal/repos","events_url":"https://api.github.com/users/monajalal/events{/privacy}","received_events_url":"https://api.github.com/users/monajalal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-20T05:37:16Z","updated_at":"2018-04-20T16:29:46Z","closed_at":null,"author_association":"NONE","body":"What am I missing?\r\n\r\n```\r\n[jalal@goku src]$ mkdir -p ../data/lidong/output/cv\r\n[jalal@goku src]$ ./run.sh lidong tdparse liblinear scale,tune,pred ../data/lidong/parses/lidong.train.conll ../data/lidong/parses/lidong.test.conll\r\nTraceback (most recent call last):\r\n  File \"tdparse.py\", line 531, in <module>\r\n    main(args.d, args.conll1, args.conll2)\r\n  File \"tdparse.py\", line 502, in main\r\n    features=targettw()\r\n  File \"tdparse.py\", line 114, in __init__\r\n    self.w2v=gensim.models.Word2Vec.load(w2vf) \r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/models/word2vec.py\", line 975, in load\r\n    return super(Word2Vec, cls).load(*args, **kwargs)\r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/models/base_any2vec.py\", line 629, in load\r\n    model = super(BaseWordEmbeddingsModel, cls).load(*args, **kwargs)\r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/models/base_any2vec.py\", line 278, in load\r\n    return super(BaseAny2VecModel, cls).load(fname_or_handle, **kwargs)\r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/utils.py\", line 426, in load\r\n    obj._load_specials(fname, mmap, compress, subname)\r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/utils.py\", line 469, in _load_specials\r\n    setattr(self, attrib, val)\r\n  File \"/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/gensim/utils.py\", line 1396, in new_func1\r\n    stacklevel=2\r\nDeprecationWarning: Call to deprecated `syn1` (Attribute will be removed in 4.0.0, use self.trainables.syn1 instead).\r\n/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.\r\n  \"This module will be removed in 0.20.\", DeprecationWarning)\r\n********************************************************************************\r\n********************************************************************************\r\n---Feature scaling\r\nScaling features\r\ncan't open file ../data/lidong/output/training\r\ncan't open file ../data/lidong/output/testing\r\n---Parameter tuning\r\n/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/numpy/lib/function_base.py:1110: RuntimeWarning: Mean of empty slice.\r\n  avg = a.mean(axis)\r\n/scratch/sjn-p2/anaconda/anaconda2/lib/python2.7/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars\r\n  ret = ret.dtype.type(ret / rcount)\r\nTraceback (most recent call last):\r\n  File \"liblinear.py\", line 182, in <module>\r\n    main(output_dir, args.ci, args.p)\r\n  File \"liblinear.py\", line 138, in main\r\n    tunec = TUNE(trfile,cv_trfile,cv_tfile,cv_pfile,cv_truey,id_train)\r\n  File \"liblinear.py\", line 110, in TUNE\r\n    tunec.append([ci] + CV(str(ci),trfile,cv_trfile,cv_tfile,cv_pfile,cv_truey,id_train))\r\n  File \"liblinear.py\", line 83, in CV\r\n    f1_two_list.append((metrics.f1_score(y_test, y_predicted, average=None)[0]+metrics.f1_score(y_test, y_predicted, average=None)[-1])/2)\r\nIndexError: index 0 is out of bounds for axis 0 with size 0\r\n[jalal@goku src]$ \r\n\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/bluemonk482/tdparse/issues/comments/383151010","html_url":"https://github.com/bluemonk482/tdparse/issues/4#issuecomment-383151010","issue_url":"https://api.github.com/repos/bluemonk482/tdparse/issues/4","id":383151010,"user":{"login":"bluemonk482","id":6764450,"avatar_url":"https://avatars1.githubusercontent.com/u/6764450?v=4","gravatar_id":"","url":"https://api.github.com/users/bluemonk482","html_url":"https://github.com/bluemonk482","followers_url":"https://api.github.com/users/bluemonk482/followers","following_url":"https://api.github.com/users/bluemonk482/following{/other_user}","gists_url":"https://api.github.com/users/bluemonk482/gists{/gist_id}","starred_url":"https://api.github.com/users/bluemonk482/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluemonk482/subscriptions","organizations_url":"https://api.github.com/users/bluemonk482/orgs","repos_url":"https://api.github.com/users/bluemonk482/repos","events_url":"https://api.github.com/users/bluemonk482/events{/privacy}","received_events_url":"https://api.github.com/users/bluemonk482/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T16:29:46Z","updated_at":"2018-04-20T16:29:46Z","author_association":"OWNER","body":"Hi Mona, it seems that features are being extracted due to the failure of loading pretrained word embeddings. There seems to be a ongoing issue with gensim Word2Vec model compatibility. The model saved in `w2vf` was trained in a early version of gensim ('1.0.1'). I would suggest to roll back your version of gensim if that's not too much trouble. "}}
{"actor":{"display_login":"bluemonk482"}}