5 ms·
Maybe you could have generated random test input, generated the trees, and then converted the trees back to the input, checking if they match?
by deterministic 3mo ago
Maybe you could have generated random test input, generated the trees, and then converted the trees back to the input, checking if they match?
- nz 3mo agoYeah, that is situation 2 mentioned above. A Chomsky Grammar is also a generator. So it can generate valid inputs, and then turn them into valid outputs -- and it can do the first part stochastically/randomly.