drmfinlay / pyjsgf

JSpeech Grammar Format (JSGF) compiler, matcher and parser package for Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No reset in find_matching_part

embie27 opened this issue · comments

In the method Rule.find_matching_part the rule is not reset for a new match. Thus, tags from previous matches will not be erased. The line self.expansion.reset_for_new_match() from Rule.matches is missing inRule.find_matching_part.

Thanks! This should be fixed by the commit I've just made. I will release it in version 1.7.1 shortly.

This should is fixed now if you upgrade to version 1.7.1.