This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!pip install jieba, tqdm | |
from tqdm import tqdm | |
from typing import List, Dict | |
import jieba | |
import numpy as np | |
def load_char_vocab_and_corpus(train_data:List[str], min_count=2): | |
chars = dict() |