parameters: (self, category)
return_statement: return self._mapping[category]
docstring: Returns word's id in the vocabulary.
  
      If category is new, creates a new id for it.
  
      Args:
        category: string or integer to lookup in vocabulary.
  
      Returns:
        interger, id in the vocabulary.
docstring_summary: Returns word's id in the vocabulary.
docstring_tokens: Returns word s id in the vocabulary .
function: def get(self, category):
      """Returns word's id in the vocabulary.
  
      If category is new, creates a new id for it.
  
      Args:
        category: string or integer to lookup in vocabulary.
  
      Returns:
        interger, id in the vocabulary.
      """
      if category not in self._mapping:
        if self._freeze:
          return 0
        self._mapping[category] = len(self._mapping)
        if self._support_reverse:
          self._reverse_mapping.append(category)
      return self._mapping[category]
function_tokens: def get ( self , category ) : if category not in self . _mapping : if self . _freeze : return 0 self . _mapping [ category ] = len ( self . _mapping ) if self . _support_reverse : self . _reverse_mapping . append ( category ) return self . _mapping [ category ]