WING-NUS / Neural-ParsCit

Neuralized version of the Reference String Parser component of the ParsCit package.
http://wing.comp.nus.edu.sg/parsCit
Other
78 stars 17 forks source link

index errors #26

Open jiangenhe opened 5 years ago

jiangenhe commented 5 years ago

I came across index errors for some files. I examined these files and no common feature has been identified. The error is as below. Did anyone saw the same error?

IndexError: index 1279213 is out of bounds for size 1278786 Apply node that caused the error: AdvancedSubtensor1(word_layer__embeddings, word_ids) Toposort index: 16 Inputs types: [TensorType(float64, matrix), TensorType(int32, vector)] Inputs shapes: [(1278786, 500), (537,)] Inputs strides: [(4000, 8), (4,)] Inputs values: ['not shown', 'not shown'] Outputs clients: [[Join(TensorConstant{1}, AdvancedSubtensor1.0, AdvancedSubtensor.0, AdvancedSubtensor.0, AdvancedSubtensor1.0)]]

Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer): File "parscit/run.py", line 42, in f = model.build(training=False, **model.parameters) File "parscit/model.py", line 223, in build word_input = word_layer.link(word_ids) File "parscit/nn.py", line 101, in link self.output = self.embeddings[self.input]

kylase commented 5 years ago

This is related to #16.

@jiangenhe I presume this happens after the training is done?

bytetopia commented 4 years ago

I have the same error message. Is there a solution to solve this problem?