from pathlib import Path


def get_vocab_files(vocab_folder):
    """helper function to get the absolute paths of all .txt files in a give dir"""
    files = Path(vocab_folder).glob('*.txt')
    abs_file_paths = [Path().cwd() / f for f in files]
    return abs_file_paths