def __init__(self, max_seq_len, lower=True):
    self.lower = lower
    self.max_seq_len = max_seq_len
    self.word2idx = {}
    self.idx2word = {}
    self.idx = 1
def __init__(self, max_seq_len, lower=True):
    self.lower = lower
    self.max_seq_len = max_seq_len
    self.word2idx = {}
    self.idx2word = {}
    self.idx = 1