We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems the matching strategy is greedy instead of optimal.
For example: grammar = Grammar() play = AlternativeSet("play", "play the") something = AlternativeSet("the game", "piano") play_something = PublicRule("play_something", Sequence(play, something)) grammar.add_rules(play_something) grammar.compile()
grammar.find_matching_rules("play the game") -- no matching grammar.find_matching_rules("play the piano") -- matching
I think the sentance "play the game" should match the rule "play""the game".
Can you help to support it? Thanks.
@Danesprite
The text was updated successfully, but these errors were encountered:
@sunfangxun Thanks for reporting this! I'll see if I can fix it soon.
Sorry, something went wrong.
drmfinlay
No branches or pull requests
It seems the matching strategy is greedy instead of optimal.
For example:
grammar = Grammar()
play = AlternativeSet("play", "play the")
something = AlternativeSet("the game", "piano")
play_something = PublicRule("play_something", Sequence(play, something))
grammar.add_rules(play_something)
grammar.compile()
grammar.find_matching_rules("play the game") -- no matching
grammar.find_matching_rules("play the piano") -- matching
I think the sentance "play the game" should match the rule "play""the game".
Can you help to support it? Thanks.
@Danesprite
The text was updated successfully, but these errors were encountered: