expression.lift
$\newcommand{\lweight}[2]{\bra{#1}{#2}} \newcommand{\bra}[1]{\langle#1\rangle}$ Turn an expression into a spontaneous expression by mapping it into $\lweight{expression}{\varepsilon}$.
See also:
import vcsn from IPython.display import display
a = vcsn.Q.expression('(<1>a+<2>b+<3>c){2}') a
b = a.lift() b
display(a.context(), b.context())
display(a.type(), b.type())
'expressionset<letterset<char_letters(abc)>, q>'
'expressionset<lao, expressionset<letterset<char_letters(abc)>, q>>'