






from typing import Dict

from .base import GenericTensor, Pipeline







class 			_lowercase ( lowerCAmelCase__    ):
      def     lowercase__       (  self					,      a=None					,      a=None					,      a=None					,      **a ):
       if tokenize_kwargs is None:
        snake_case__	:     int											={}

       if truncation is not None:
        if "truncation" in tokenize_kwargs:
         raise ValueError(
             """truncation parameter defined twice (given as keyword argument as well as in tokenize_kwargs)""" )
        snake_case__	:     Optional[int]											=truncation

       snake_case__	:     List[str]											=tokenize_kwargs

       snake_case__	:     Tuple											={}
       if return_tensors is not None:
        snake_case__	:     List[Any]											=return_tensors

       return preprocess_params, {}, postprocess_params
      def     lowercase__       (  self					,      a					,      **a ):
       snake_case__	:     Any											=self.framework
       snake_case__	:     Dict											=self.tokenizer(__UpperCAmelCase					,      return_tensors=__UpperCAmelCase					,      **__UpperCAmelCase )
       return model_inputs
      def     lowercase__       (  self					,      a ):
       snake_case__	:     List[str]											=self.model(**__UpperCAmelCase )
       return model_outputs
      def     lowercase__       (  self					,      a					,      a=False ):
       # [0] is the first available tensor, logits or last_hidden_state.
       if return_tensors:
        return model_outputs[0]
       if self.framework == "pt":
        return model_outputs[0].tolist()
       elif self.framework == "tf":
        return model_outputs[0].numpy().tolist()



      def __call__(  self					,      *a					,      **a ):
       return super().__call__(*__UpperCAmelCase					,      **__UpperCAmelCase )










def 		a__      (		_UpperCamelCase      :			str				):
   if not all(x.isalpha() for x in string				):
      raise ValueError('''String must only contain alphabetic characters.'''				)

   __lowerCamelCase    				=     sorted(string.lower()				)
   return len(_UpperCamelCase				) == len(set(_UpperCamelCase				)				)


if __name__ == "__main__":
  a_								=       input("""Enter a string """).strip()

  a_								=       is_isogram(input_str)
  print(f"{input_str} is {'an' if isogram else 'not an'} isogram.")






