parameters: (self)
docstring: Check if vocabulary is empty or missing (not fitted)
docstring_summary: Check if vocabulary is empty or missing (not fitted)
docstring_tokens: Check if vocabulary is empty or missing ( not fitted )
function: def _check_vocabulary(self):
          """Check if vocabulary is empty or missing (not fitted)"""
          if not hasattr(self, 'vocabulary_'):
              self._validate_vocabulary()
              if not self.fixed_vocabulary_:
                  raise NotFittedError("Vocabulary not fitted or provided")
  
          if len(self.vocabulary_) == 0:
              raise ValueError("Vocabulary is empty")
function_tokens: def _check_vocabulary ( self ) : if not hasattr ( self , 'vocabulary_' ) : self . _validate_vocabulary ( ) if not self . fixed_vocabulary_ : raise NotFittedError ( "Vocabulary not fitted or provided" ) if len ( self . vocabulary_ ) == 0 : raise ValueError ( "Vocabulary is empty" )