Parser-v1 icon indicating copy to clipboard operation
Parser-v1 copied to clipboard

error while training

Open kchax4377 opened this issue 6 years ago • 0 comments

Hi, I am using the Universal Dependencies dataset for training. I am using Python2.7 and tensorflow 0.8. But I get the following error:

python network.py --config_file config/config.cfg --save_dir saves/mymodel *** Parser *** Save directory already exists. Press <Enter> to overwrite or <Ctrl-C> to exit. Traceback (most recent call last): File "network.py", line 372, in network = Network(model, **cargs) File "network.py", line 73, in init self._trainset = Dataset(self.train_file, self._vocabs, model, self._config, name='Trainset') File "/home/kunal/Parser-v1/dataset.py", line 45, in init self.rebucket() File "/home/kunal/Parser-v1/dataset.py", line 121, in rebucket buff = self._file_iterator.next() File "/home/kunal/Parser-v1/dataset.py", line 92, in file_iterator buff = self._process_buff(buff) File "/home/kunal/Parser-v1/dataset.py", line 104, in process_buff buff[i][j] = (word,) + words[word] + tags[tag1] + tags[tag2] + (int(head),) + rels[rel] ValueError: invalid literal for int() with base 10: ''

Is there anything wrong with the files?

kchax4377 avatar Jan 29 '19 12:01 kchax4377