code: def doc2id(self, doc):
          
          doc = map(self.process_token, doc)
          return [self.token_to_id(token) for token in doc]
docs: Get the list of token_id given doc.
  
          Args:
              doc (list): document.
  
          Returns:
              list: int id of doc.