Skip to content
New issue

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

error while training #11

Open
kchax4377 opened this issue Jan 29, 2019 · 0 comments
Open

error while training #11

kchax4377 opened this issue Jan 29, 2019 · 0 comments

Comments

@kchax4377
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant