What is the best way to detect a sequence of characters in python?
I'm trying to use transitions package by Tal yarkoni for creating fsm's based on input sequences. Then i want to use the created fsms for new sequence recognition. I'm storing the created fsm in a dict with sequence number as key.
All the fsms from the dictionary should make transition as per input chars. The one which reaches end state is the required sequence and the function should return the key.
Problem is that there is no concept of end state in the transitions fsm model. Is it possible to do this using transitions package?