Skip to content

Update expansion_key to handle empty alternatives - #154

Merged
andreas-zeller merged 1 commit into
uds-se:masterfrom
martineberlein:master
Feb 8, 2023
Merged

Update expansion_key to handle empty alternatives#154
andreas-zeller merged 1 commit into
uds-se:masterfrom
martineberlein:master

Conversation

@martineberlein

Copy link
Copy Markdown
Contributor

When using the ProbabilisticGrammarMiner to learn the probability distribution from a set of given inputs, the miner does not return the correct probabilistic grammar. In particular, this bug occurs whenever a grammar is used with a production rule that has an "empty" alternative: ⟨maybe_minus⟩ ::= "" | "-". Somehow the miner does not account for the empty ("") derivation sequence. See Issue #153

When using the ProbabilisticGrammarMiner to learn the probability distribution from a set of given inputs, the miner does not return the correct probabilistic grammar. In particular, this bug occurs whenever a grammar is used with a production rule that has an "empty" alternative: ⟨maybe_minus⟩ ::= "" | "-". Somehow the miner does not account for the empty ("") derivation sequence. See Issue #153
@andreas-zeller
andreas-zeller merged commit f5fb56c into uds-se:master Feb 8, 2023
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 this pull request may close these issues.

2 participants