




"""simple docstring"""




import unittest

from transformers import is_torch_available, load_tool

from .test_tools_common import ToolTesterMixin


if is_torch_available():
			import torch

class        UpperCAmelCase_  (	unittest.TestCase ,			snake_case						):
		def 					_lowerCamelCase    (		self   )		->   Dict:
					__lowercase	:       Union[str, Any]				=   load_tool('''speech-to-text'''   )
					self.tool.setup()
		def 					_lowerCamelCase    (		self   )		->   List[str]:
					__lowercase	:       Union[str, Any]				=   self.tool(torch.ones(30_00   )   )
					self.assertEqual(UpperCamelCase_							,		''' you'''   )
		def 					_lowerCamelCase    (		self   )		->   str:
					__lowercase	:       List[str]				=   self.tool(audio=torch.ones(30_00   )   )
					self.assertEqual(UpperCamelCase_							,		''' you'''   )









"""simple docstring"""




from collections import defaultdict







def       __UpperCAmelCase      (				__UpperCamelCase					):
			__lowercase	:       defaultdict[str, int]				=   defaultdict(__UpperCamelCase					)
			# Creating a dictionary containing count of each word
			for word in sentence.split():
						occurrence[word] += 1
			return occurrence


if __name__ == "__main__":
			for word, count in word_occurrence('INPUT STRING').items():
						print(F"{word}: {count}")



