

from ...configuration_utils import PretrainedConfig
from ...utils import logging


_UpperCamelCase 			=		logging.get_logger(__name__)

_UpperCamelCase 			=		{
    "google/realm-cc-news-pretrained-embedder": (
        "https://huggingface.co/google/realm-cc-news-pretrained-embedder/resolve/main/config.json"
    ),
    "google/realm-cc-news-pretrained-encoder": (
        "https://huggingface.co/google/realm-cc-news-pretrained-encoder/resolve/main/config.json"
    ),
    "google/realm-cc-news-pretrained-scorer": (
        "https://huggingface.co/google/realm-cc-news-pretrained-scorer/resolve/main/config.json"
    ),
    "google/realm-cc-news-pretrained-openqa": (
        "https://huggingface.co/google/realm-cc-news-pretrained-openqa/aresolve/main/config.json"
    ),
    "google/realm-orqa-nq-openqa": "https://huggingface.co/google/realm-orqa-nq-openqa/resolve/main/config.json",
    "google/realm-orqa-nq-reader": "https://huggingface.co/google/realm-orqa-nq-reader/resolve/main/config.json",
    "google/realm-orqa-wq-openqa": "https://huggingface.co/google/realm-orqa-wq-openqa/resolve/main/config.json",
    "google/realm-orqa-wq-reader": "https://huggingface.co/google/realm-orqa-wq-reader/resolve/main/config.json",
    # See all REALM models at https://huggingface.co/models?filter=realm
}







class   __lowercase      (_UpperCAmelCase ):
 _UpperCamelCase			  =  """realm"""
 def __init__(							self      ,							A_=3_0522      ,							A_=768      ,							A_=128      ,							A_=12      ,							A_=12      ,							A_=8      ,							A_=3072      ,							A_="gelu_new"      ,							A_=0.1      ,							A_=0.1      ,							A_=512      ,							A_=2      ,							A_=0.02      ,							A_=1e-12      ,							A_=256      ,							A_=10      ,							A_=1e-3      ,							A_=5      ,							A_=320      ,							A_=1335_3718      ,							A_=5000      ,							A_=1      ,							A_=0      ,							A_=2      ,							**A_      ,							)					->Optional[Any]:



       '''simple docstring'''





       super().__init__(pad_token_id=A_      ,							bos_token_id=A_      ,							eos_token_id=A_      ,							**A_					)

       # Common config
       __lowerCAmelCase					:						List[str]					=					vocab_size
       __lowerCAmelCase					:						Any					=					max_position_embeddings
       __lowerCAmelCase					:						Optional[Any]					=					hidden_size
       __lowerCAmelCase					:						Optional[int]					=					retriever_proj_size
       __lowerCAmelCase					:						List[str]					=					num_hidden_layers
       __lowerCAmelCase					:						Dict					=					num_attention_heads
       __lowerCAmelCase					:						Any					=					num_candidates
       __lowerCAmelCase					:						List[Any]					=					intermediate_size
       __lowerCAmelCase					:						str					=					hidden_act
       __lowerCAmelCase					:						str					=					hidden_dropout_prob
       __lowerCAmelCase					:						Tuple					=					attention_probs_dropout_prob
       __lowerCAmelCase					:						Tuple					=					initializer_range
       __lowerCAmelCase					:						List[str]					=					type_vocab_size
       __lowerCAmelCase					:						Any					=					layer_norm_eps

       # Reader config
       __lowerCAmelCase					:						List[str]					=					span_hidden_size
       __lowerCAmelCase					:						Dict					=					max_span_width
       __lowerCAmelCase					:						List[Any]					=					reader_layer_norm_eps
       __lowerCAmelCase					:						Optional[Any]					=					reader_beam_size
       __lowerCAmelCase					:						List[Any]					=					reader_seq_len

       # Retrieval config
       __lowerCAmelCase					:						List[str]					=					num_block_records
       __lowerCAmelCase					:						Dict					=					searcher_beam_size





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

      __lowerCAmelCase					:						int					=					sorted(string.lower()						)
      return len(lowercase__						) == len(set(lowercase__						)						)


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

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


