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 to overwrite or 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?
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 to overwrite or 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?