def add_word(self, word):
        ''' Add a word to the vocabulary
        Inputs:
            word (string) : Word to be added to vocabulary
        '''
        
        if word not in self.word_to_index:
            index = len(self.word_to_index)
            self.word_to_index[word] = index
            self.index_to_word[index] = word
 Add a word to the vocabulary
        Inputs:
            word (string) : Word to be added to vocabulary
        
Model_TextCNN/old_code/utils.py