




"""simple docstring"""




import numpy as np







def       __UpperCAmelCase      (				__UpperCamelCase					):
			__lowercase	:       Dict				=   np.exp(__UpperCamelCase					)

			# Add up the all the exponentials
			__lowercase	:       Optional[Any]				=   np.sum(__UpperCamelCase					)

			# Divide every exponent by the sum of all exponents
			__lowercase	:       Dict				=   exponent_vector / sum_of_exponents

			return softmax_vector


if __name__ == "__main__":
			print(softmax((0,)))









"""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}")



