






def      a_ (      _A      ,   _A = False  )			->			str:







				"""simple docstring"""

				if not isinstance(_A      ,   _A  ):
								snake_case__									=     f'''Expected string as input, found {type(_A  )}'''
								raise ValueError(_A  )
				if not isinstance(_A      ,   _A  ):
								snake_case__									=     f'''Expected boolean as use_pascal parameter, found {type(_A  )}'''
								raise ValueError(_A  )

				snake_case__									=     input_str.split('_'  )

				snake_case__									=     0 if use_pascal else 1

				snake_case__									=     words[start_index:]

				snake_case__									=     [word[0].upper() + word[1:] for word in words_to_capitalize]

				snake_case__									=     '' if use_pascal else words[0]

				return "".join([initial_word, *capitalized_words]  )


if __name__ == "__main__":
							from doctest import testmod

							testmod()












from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available


__UpperCamelCase					:		str	  =						{}

try:
							if not is_sentencepiece_available():
														raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
							pass
else:
							__UpperCamelCase					:		Dict	  =						["""BartphoTokenizer"""]

if TYPE_CHECKING:
							try:
														if not is_sentencepiece_available():
																					raise OptionalDependencyNotAvailable()
							except OptionalDependencyNotAvailable:
														pass
							else:
														from .tokenization_bartpho import BartphoTokenizer

else:
							import sys

							__UpperCamelCase					:		Any	  =						_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




