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

Generating predicates from alternating chained grammars #1624

Open
yichao-liang opened this issue Apr 1, 2024 · 1 comment
Open

Generating predicates from alternating chained grammars #1624

yichao-liang opened this issue Apr 1, 2024 · 1 comment

Comments

@yichao-liang
Copy link
Collaborator

When generating predicates from _ChainPredicateGrammar with alternate=True, such as here when CFG.grammar_search_grammar_use_diff_features=True.

The enumeration seems to stop before grammar_search_max_predicates amount of predicates are generated, as one of the grammars runs out. In my experiment, it generated a total of 17 candidates when the hyperparameter is set to 200.

@tomsilver
Copy link
Collaborator

Thanks @yichao-liang , that's a very good catch. Do you have the bandwidth to implement a fix?

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