NekoApocalypse / PCNN_TensorFlow

Piece-wise CNN for relation extraction.
14 stars 8 forks source link

error #3

Closed ghost closed 5 years ago

ghost commented 6 years ago

InvalidArgumentError: indices[0,0] = 114043 is not in [0, 123) [[Node: model/embedding_lookup_7 = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@model/pos1_embedding"], validate_indices=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](model/pos1_embedding/read, _arg_model/input_pos1_right_0_2)]]

I did't solve this error yet. Is this program really work in your computer. By the way, I'm using Python3.5.2 & Tensorflow1.4.0 Can you upload your model? Please help me.

NekoApocalypse commented 6 years ago

I downloaded and ran the code with the following commands and find no errors.

git clone git@github.com:NekoApocalypse/PCNN_TensorFlow.git cd PCNN_TensorFlow.git mkdir data python3 initial.py python3 train_PCNN.py

Did the error occur before training starts or mid training?

ghost commented 6 years ago

error is gone, but the precision is too low dd