BYTE PAIR ENCODING grammar

Continuing the discussion from [Community Puzzle] Byte pair encoding:

What about “aabdaabcab” case?
Can you expane what answer should be for this input?

A post was merged into an existing topic: [Community Puzzle] Byte pair encoding