Is there a way to make an action space from a context free grammar?

32 Views Asked by At

I'm looking to build an agent that can use messages that conform to a context-free grammar as its actions and work in an environment using gymnasium. I see they have a text space, but that doesn't really capture the action space, as messages that don't conform to the grammar aren't valid actions. An intermediate step would be like if instead of a charset I could specify a token set, but that's still only halfway there. Has anyone done anything similar or know a way to do this?

0

There are 0 best solutions below