def chess_transform(move_sequence: str) -> set:
    """Transform a sequence of chess moves encoded in SAN into a set."""
    move_sequence = str_to_set(move_sequence)
    return {move_san.removesuffix("!").removesuffix("#") for move_san in move_sequence}
Transform a sequence of chess moves encoded in SAN into a set.
vlmeval/dataset/utils/megabench/scoring/chess_jaccard.py