from typing import List
from typing import Tuple


def fast_text_prediction_to_language_code(res: List[Tuple[str, str]]) -> List[str]:
    """Convert fastText language predictions to language codes"""
    labels, _ = res
    return [tmp[tmp.rfind("_") + 1 :] for tmp in labels]