The WFST composition operation allows the outputs of one WFST to be fed to the inputs of a second WFST or FSA.
we build our final machine by composing the three sub-machines as, where i = c or i = c + t. This gives us a combined weighted graph by mapping the output symbols of the first medical event sequence to the input symbols of the second medical event sequence.