sgnlp.models.csgec.tokenization.get_pairs

get_pairs(word)[source]

Return set of symbol pairs in a word.

word is represented as tuple of symbols (symbols being variable-length strings)