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

Filter vocabulary to avoid non-terminal paths #192

Open
rlouf opened this issue Jul 15, 2023 · 0 comments
Open

Filter vocabulary to avoid non-terminal paths #192

rlouf opened this issue Jul 15, 2023 · 0 comments
Labels
enhancement structured generation Linked to structured generation text Linked to text generation

Comments

@rlouf
Copy link
Member

rlouf commented Jul 15, 2023

When a regex has more than one terminal state, it is possible that not all terminal states can be reached with a given vocabulary and that the FSM gets stuck in one of these non-terminal paths. We should therefore filter the vocabulary so it never gets stuck in such a path.

@rlouf rlouf added text Linked to text generation enhancement structured generation Linked to structured generation labels Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement structured generation Linked to structured generation text Linked to text generation
Projects
None yet
Development

No branches or pull requests

1 participant