Skip to content
New issue

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

Reversing an FSA fails #96

Open
marcverhagen opened this issue Dec 8, 2020 · 0 comments
Open

Reversing an FSA fails #96

marcverhagen opened this issue Dec 8, 2020 · 0 comments

Comments

@marcverhagen
Copy link
Member

The utilities/FSA.py script has an error in that you cannot reverse an FSA.

To replicate start python2 from the main directory and do this:

>>> from utilities import FSA
>>> fsa3 = FSA.compileOP(['(','a','|','the',')', 'very', '*', '(', 'boring','|','nice', ')', '+', 'movie'])
>>> FSA.reverse(fsa3)

You will get an error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "utilities/FSA.py", line 1176, in reverse
    [initial])
  File "utilities/FSA.py", line 419, in create
    return apply(self.__class__, args)
TypeError: __init__() takes at least 6 arguments (5 given)
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

No branches or pull requests

1 participant