




import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin
class 			a__    (					unittest.TestCase ,				snake_case__      ):






						def 				__SCREAMING_SNAKE_CASE(   self			):




											"""simple docstring"""



											__lowerCAmelCase				   =       load_tool("text-classification"			)
											self.tool.setup()
											__lowerCAmelCase				   =       load_tool("text-classification"		,			remote=_A			)






						def 				__SCREAMING_SNAKE_CASE(   self			):




											"""simple docstring"""



											__lowerCAmelCase				   =       self.tool("That's quite cool"		,			["positive", "negative"]			)
											self.assertEqual(_A		,			"positive"			)






						def 				__SCREAMING_SNAKE_CASE(   self			):




											"""simple docstring"""



											__lowerCAmelCase				   =       self.remote_tool("That's quite cool"		,			["positive", "negative"]			)
											self.assertEqual(_A		,			"positive"			)






						def 				__SCREAMING_SNAKE_CASE(   self			):




											"""simple docstring"""



											__lowerCAmelCase				   =       self.tool(text="That's quite cool"		,			labels=["positive", "negative"]			)
											self.assertEqual(_A		,			"positive"			)






						def 				__SCREAMING_SNAKE_CASE(   self			):




											"""simple docstring"""



											__lowerCAmelCase				   =       self.remote_tool(text="That's quite cool"		,			labels=["positive", "negative"]			)
											self.assertEqual(_A		,			"positive"			)










from typing import TYPE_CHECKING

from ...utils import _LazyModule


UpperCamelCase__    			=			{"""tokenization_wav2vec2_phoneme""": ["""Wav2Vec2PhonemeCTCTokenizer"""]}


if TYPE_CHECKING:
					from .tokenization_wavaveca_phoneme import WavaVecaPhonemeCTCTokenizer
else:
					import sys

					UpperCamelCase__    			=			_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)




