We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: