zseder / hunvec

Sequential Tagging in NLP using neural networks
5 stars 4 forks source link

tagger.py bug #63

Closed pajkossy closed 9 years ago

pajkossy commented 9 years ago

Traceback (most recent call last): File "hunvec/seqtag/tagger.py", line 61, in main() File "hunvec/seqtag/tagger.py", line 57, in main tag(args) File "hunvec/seqtag/tagger.py", line 48, in tag tags = wt.tag_sen(words, feats) File "/home/pajkossy/hunvec/hunvec/seqtag/sequence_tagger.py", line 224, in tag_sen y = self.f(words, feats) File "/home/pajkossy/pylearn_env/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 608, in call storage_map=self.fn.storage_map) File "/home/pajkossy/pylearn_env/local/lib/python2.7/site-packages/theano/compile/function_module.py", line 597, in call outputs = self.fn() IndexError: index 30 is out of bounds for size 28 Apply node that caused the error: AdvancedSubtensor1(feats_W, Flatten{1}.0) Inputs types: [TensorType(float64, matrix), TensorType(int64, vector)] Inputs shapes: [(28, 5), (52,)] Inputs strides: [(40, 8), (8,)] Inputs values: ['not shown', 'not shown']

zseder commented 9 years ago

hopefully fixed in #64, please test it. warning: datasets and models has to be retrained, old models won't work (without manual modification)

pajkossy commented 9 years ago

fixed