So, I have a set of discrete sequences, let's say, composed by letters, representing a certain action:
A -> B -> C -> D B -> E -> A -> C ...
My objective is to, given an incoming sequence, detect if it is anomalous or not (unsurpervised, since we do not know what "anomalous" is at the beggining).
However, most of the algorithms and packages are for numerical data. If I do a one-hot-encoding strategy, I would get that a certain action "is bigger than" another one (since it is treated as numerical) which should be correct.
Is there any other strategy for discrete sequences? I found some papers but they are all theoretical, and not with practical examples (for python in this case).