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

Pipeline for getting an egraph_serialized from the extraction-gym #38

Open
ninehusky opened this issue Jul 18, 2024 · 1 comment · May be fixed by #39
Open

Pipeline for getting an egraph_serialized from the extraction-gym #38

ninehusky opened this issue Jul 18, 2024 · 1 comment · May be fixed by #39

Comments

@ninehusky
Copy link
Contributor

Once something's been extracted from the egraph, there's not an easy way to get the term back into something like an egg::RecExpr or an egglog::Term.

@ninehusky ninehusky changed the title Pipeline for getting an egraph_serialized from the extraction-gym. Pipeline for getting an egraph_serialized from the extraction-gym Jul 18, 2024
@ninehusky
Copy link
Contributor Author

I'm thinking a first pass at a solution might be to loop through [result.choices](https://github.com/egraphs-good/extraction-gym/blob/main/src/main.rs#L150) to manually build up an AST. Happy to get feedback!

@ninehusky ninehusky linked a pull request Jul 19, 2024 that will close this 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

Successfully merging a pull request may close this issue.

1 participant