(self, word)
return self.word2id.get(word, self.unk_id)
Retrieve word's index. Return the index for the unk
        token if the word is out of vocabulary.
        @param word (str): word to look up.
        @returns index (int): index of word
Retrieve word's index. Return the index for the unk
        token if the word is out of vocabulary.
Retrieve word s index . Return the index for the unk token if the word is out of vocabulary .
def __getitem__(self, word):
        """ Retrieve word's index. Return the index for the unk
        token if the word is out of vocabulary.
        @param word (str): word to look up.
        @returns index (int): index of word 
        """
        return self.word2id.get(word, self.unk_id)
def __getitem__ ( self , word ) : return self . word2id . get ( word , self . unk_id )