def get_vocab_size(vocab_file):
    """
    统计词汇长度
    :param vocab_file: 词汇文件名
    :return: 长度
    """
    with open(vocab_file, encoding='utf-8') as f:
        count = len(f.readlines())
    return count