ķ <ŋCVc@@sđdZddlmZddlmZmZddlZddlmZdeeƒfd„ƒYZ deeƒfd „ƒYZ d eeƒej j j fd „ƒYZd Zd Zdeeƒfd„ƒYZdeeƒfd„ƒYZdS(sßAbstract base classes for models (taggers, noun phrase extractors, etc.) which define the interface for descendant classes. .. versionchanged:: 0.7.0 All base classes are defined in the same module, ``textblob.base``. i(tabsolute_import(tABCMetatabstractmethodN(twith_metaclasst BaseTaggercB@s eZdZeed„ƒZRS(szAbstract tagger class from which all taggers inherit from. All descendants must implement a ``tag()`` method. cC@sdS(sYReturn a list of tuples of the form (word, tag) for a given set of text. N((tselfttextttokenize((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyttags(t__name__t __module__t__doc__RtTrueR(((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyRstBaseNPExtractorcB@seZdZed„ƒZRS(sēAbstract base class from which all NPExtractor classes inherit. Descendant classes must implement an ``extract(text)`` method that returns a list of noun phrases as strings. cC@sdS(s;Return a list of noun phrases (strings) for a body of text.N((RR((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pytextract%s(R R R RR(((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyR st BaseTokenizercB@s&eZdZed„ƒZd„ZRS(s¸Abstract base class from which all Tokenizer classes inherit. Descendant classes must implement a ``tokenize(text)`` method that returns a list of noun phrases as strings. cC@sdS(sTReturn a list of tokens (strings) for a body of text. :rtype: list N((RR((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyR1scO@sd„|j|||ŽDƒS(szReturn a generator that generates tokens "on-demand". .. versionadded:: 0.6.0 :rtype: generator cs@s|] }|VqdS(N((t.0tt((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pys @s(R(RRtargstkwargs((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyt itokenize9s(R R R RRR(((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyR,stdstcotBaseSentimentAnalyzercB@s5eZdZeZd„Zd„Zed„ƒZRS(s§Abstract base class from which all sentiment analyzers inherit. Should implement an ``analyze(text)`` method which returns either the results of analysis. cC@s t|_dS(N(tFalset_trained(R((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyt__init__OscC@s t|_dS(N(R R(R((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyttrainRscC@s|js|jƒndS(sjReturn the result of of analysis. Typically returns either a tuple, float, or dictionary. N(RRtNone(RR((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pytanalyzeVs  ( R R R tDISCRETEtkindRRRR(((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyRHs   t BaseParsercB@seZdZed„ƒZRS(sxAbstract parser class from which all parsers inherit from. All descendants must implement a ``parse()`` method. cC@sdS(sParses the text.N((RR((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pytparsegs(R R R RR!(((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyR cs(R t __future__RtabcRRtnltkttextblob.compatRRR Rtapit TokenizerIRRt CONTINUOUSRR (((sc/private/var/folders/cc/xm4nqn811x9b50x1q_zpkmvdjlphkp/T/pip-build-FUwmDn/textblob/textblob/base.pyts  (