In [1]:
import vcsn
The following is the input automaton:
In [2]:
a = vcsn.Q.expression("<3>abc*(<2>d)* + ce<5>").automaton()
a
Out[2]:
In [3]:
b = a.partial_identity()
b
Out[3]:
In [4]:
b.context()
Out[4]:
In [5]:
a.eval("abcd")
Out[5]:
In [6]:
b.lift(1).eval("abcd")
Out[6]: