Closed massongit closed 6 years ago
Oh really? Please tell me your command.
I ran this command: deep-crf train input_file.txt --delimiter=' ' --dev_file input_file_dev.txt --save_name bilstm-cnn-crf_adam --input_idx 0,1,2 --output_idx 3 --gpu 0 --save_dir save_model_dir
I fixed the error. The cause of error is division (For details: Python 3ではまったこと - minus9d's diary (Japanese)).
I implemented to call itertools.izip_longest
through the six.moves
.
I replaced xrange
to six.moves.range
.
8
I implemented to support Python2.x and Python 3.x.
However, the following error occurs in Python 3.5 and Chainer v1.24.0 now:
I think valiable
word_embs_reshape
in deepcrf/cnn.py line 120 maybe a cause of this error, but I haven't been able to find a solution yet.