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

Indices Error in CRF #32

Closed
rikkuporta opened this issue Nov 16, 2017 · 2 comments
Closed

Indices Error in CRF #32

rikkuporta opened this issue Nov 16, 2017 · 2 comments

Comments

@rikkuporta
Copy link

Hi!
I dont know if you can help me, but Ill ask.
I created my own pipeline to generate data in the format that is needed by your network, without needing to save it in a file or something like that. Right now Im not using any word embeddings, and the network is training and loss is falling. Until at some point in the training an error comes up:

InvalidArgumentError (see above for traceback): indices[2,5] = 1716 is not in [0, 1681)
[[Node: crf/Gather_1 = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, validate_indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](crf/Reshape_3, crf/add_2)]]

Which happens at the tf.contrib.crf.crf_log_likelihood

Do you have any idea what this could be?

@rikkuporta
Copy link
Author

Nevermind, I found it, it was just a index shift, because my tags started at 1 instead of 0. The error message was just to cryptic for me.

@guillaumegenthial
Copy link
Owner

great you found out! closing the issue.

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

2 participants