

from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_tokenizers_available


lowerCAmelCase				:    Dict        =		{"tokenization_herbert": ["HerbertTokenizer"]}

try:
						if not is_tokenizers_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						lowerCAmelCase				:    Union[str, Any]        =		["HerbertTokenizerFast"]


if TYPE_CHECKING:
						from .tokenization_herbert import HerbertTokenizer

						try:
												if not is_tokenizers_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .tokenization_herbert_fast import HerbertTokenizerFast

else:
						import sys

						lowerCAmelCase				:    Dict        =		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)












import numpy as np


def 		lowerCamelCase__       (						_A				):







	'''simple docstring'''





	return (2 / (1 + np.exp(-2 * vector				))) - 1


if __name__ == "__main__":
		import doctest

		doctest.testmod()
