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

Multiple characters in a label cause a segfault #71

Closed
lorenlugosch opened this issue May 28, 2018 · 1 comment
Closed

Multiple characters in a label cause a segfault #71

lorenlugosch opened this issue May 28, 2018 · 1 comment

Comments

@lorenlugosch
Copy link

When I try to use a multiple-character string as a label, I get a segfault.
For example:

import torch
import ctcdecode
labels = ["_", "SIL", "A"]
decoder = ctcdecode.CTCBeamDecoder(labels, blank_id=0)
decoder.decode(torch.randn(3,3,3))

triggers a segfault, whereas

import torch
import ctcdecode
labels = ["_", "A", "B"]
decoder = ctcdecode.CTCBeamDecoder(labels, blank_id=0)
decoder.decode(torch.randn(3,3,3))

does not. Is it possible to do this somehow?

@ryanleary
Copy link
Collaborator

Not today, see #31.

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