class_docstr: A vocabulary that maps tokens to ints (storing a vocabulary).
  
  Attributes:
      _token_count: A collections.Counter object holding the frequencies of tokens
          in the data used to build the Vocabulary.
      _token2id: A collections.defaultdict instance mapping token strings to
          numerical identifiers.
      _id2token: A list of token strings indexed by their numerical identifiers.
class_docstr_tok: ["A","vocabulary","that","maps","tokens","to","ints","(","storing","a","vocabulary",")",".","Attributes",":","_token_count",":","A","collections.Counter","object","holding","the","frequencies","of","tokens","in","the","data","used","to","build","the","Vocabulary",".","_token2id",":","A","collections.defaultdict","instance","mapping","token","strings","to","numerical","identifiers",".","_id2token",":","A","list","of","token","strings","indexed","by","their","numerical","identifiers","."]
docstr: Get the list of token_id given doc.
  
  Args:
      doc (list): document.
  
  Returns:
      list: int id of doc.
docstr_tok: ["Get","the","list","of","token_id","given","doc",".","Args",":","doc","(","list",")",":","document",".","Returns",":","list",":","int","id","of","doc","."]
code: def doc2id(self, doc):
      """Get the list of token_id given doc.
  
      Args:
          doc (list): document.
  
      Returns:
          list: int id of doc.
      """
      doc = map(self.process_token, doc)
      return [self.token_to_id(token) for token in doc]
  
imports: from ....imports import *
label_desc: Use image node_id 5 for calling the Vocabulary obj's underlying member method code with example usage: obj.doc2id(doc) and returns: unknown