o
    i3                     @   s	  d dl Z ddlmZ dd Zi dddd	d
dddddddddddddddddddddd d!d"d#d$d%d&d'i d(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d9d;d<d=d>d?d@dAdBdCdDdEdFdGdi dHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddedfdgdhdii djdkdlddmdndodpdqdrdsdtduddvdwdxdydzd{d|d}d~dddddddddddi ddddddddddddddddddddddddddddddddddi ddddFddddddddddddddddddddddddddēddƓddȓi ddʓdd̓ddΓddГddғddԓdd֓ddؓddړddܓddޓddddddddddddi dddddddddddddddddddddd dddddddd#ddd	d
i dddddddddddddddddddddddd d!d"d#dd$d!d%d&d'd(i d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d#d:dd;d<d=d>d?d@dAdBdCdDdEdEdFdGi dHdIdJdKdLddMdNdOdPdQddRdSdTdUdVdWdXdXdYdZd[d\d]d^d_d`dadadbdcdddi dedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwdxdyddzd{d|d|d}d~ddddddi ddddddddddddddddddddddddddddddddddi dddddddddddd!ddddddddddddddddddddddi dddddÐdēdddƐdZdddȐdWdɐdʓdːdad̐d͓dΐdϓdАdѓdҐdӓdԐdՓd֐dדdؐdٓdڐdۓi dܐdݓdސdߓddddddddddddddddddddddddddddddi ddd dddddddddd	d
dd
ddddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+ZdS (,      N   )Warningsc                 C   s(   | t v rt |  S ttjj| d dS )a]  Get a description for a given POS tag, dependency label or entity type.

    term (str): The term to explain.
    RETURNS (str): The explanation, or `None` if not found in the glossary.

    EXAMPLE:
        >>> spacy.explain(u'NORP')
        >>> doc = nlp(u'Hello world')
        >>> print([w.text, w.tag_, spacy.explain(w.tag_) for w in doc])
    termN)GLOSSARYwarningswarnr   W118formatr    r   B/home/ubuntu/.local/lib/python3.10/site-packages/spacy/glossary.pyexplain   s   r   ADJ	adjectiveADP
adpositionADVadverbAUX	auxiliaryCONJconjunctionCCONJzcoordinating conjunctionDET
determinerINTJinterjectionNOUNnounNUMnumeralPARTparticlePRONpronounPROPNzproper nounPUNCTpunctuationSCONJzsubordinating conjunctionSYMsymbolVERBverbXotherEOLzend of lineSPACEspace.z!punctuation mark, sentence closer,zpunctuation mark, commaz-LRB-zleft round bracketz-RRB-zright round bracketz``zopening quotation markz""zclosing quotation markz'':z#punctuation mark, colon or ellipsis$zsymbol, currency#zsymbol, number signAFXaffixCCzconjunction, coordinatingCDzcardinal numberDTEXzexistential thereFWzforeign wordHYPHzpunctuation mark, hyphenINz)conjunction, subordinating or prepositionJJz2adjective (English), other noun-modifier (Chinese)JJRzadjective, comparativeJJSzadjective, superlativeLSzlist item markerMDzverb, modal auxiliaryNILzmissing tagNNznoun, singular or massNNPznoun, proper singularNNPSznoun, proper pluralNNSznoun, pluralPDTpredeterminerPOSzpossessive endingPRPzpronoun, personalzPRP$zpronoun, possessiveRBRBRzadverb, comparativeRBSzadverb, superlativeRPzadverb, particleTOzinfinitival "to"UHVBzverb, base formVBDzverb, past tenseVBGz"verb, gerund or present participleVBNzverb, past participleVBPz%verb, non-3rd person singular presentVBZz!verb, 3rd person singular presentWDTzwh-determinerWPzwh-pronoun, personalzWP$zwh-pronoun, possessiveWRBz	wh-adverbSPz2space (English), sentence-final particle (Chinese)ADDemailNFPzsuperfluous punctuationGWz(additional word in multi-word expressionXXunknownBESzauxiliary "be"HVSzforms of "have"_SP
whitespacez$(z(other sentence-internal punctuation markz$,commaz$.zsentence-final punctuation markADJAzadjective, attributiveADJDz#adjective, adverbial or predicativeAPPOpostpositionAPPRz preposition; circumposition leftAPPRARTzpreposition with articleAPZRzcircumposition rightARTzdefinite or indefinite articleCARDFMzforeign language materialITJKOKOMzcomparative conjunctionKONzcoordinate conjunctionKOUIz0subordinate conjunction with "zu" and infinitiveKOUSz%subordinate conjunction with sentenceNENNEPAVzpronominal adverbPROAVPDATz!attributive demonstrative pronounPDSz"substituting demonstrative pronounPIATz1attributive indefinite pronoun without determinerPIDATz.attributive indefinite pronoun with determinerPISzsubstituting indefinite pronounPPERznon-reflexive personal pronounPPOSATzattributive possessive pronounPPOSSzsubstituting possessive pronounPRELATzattributive relative pronounPRELSzsubstituting relative pronounPRFzreflexive personal pronounPTKAz!particle with adjective or adverbPTKANTzanswer particlePTKNEGznegative particlePTKVZzseparable verbal particlePTKZUz"zu" before infinitivePWATz!attributive interrogative pronounPWAVz+adverbial interrogative or relative pronounPWSz"substituting interrogative pronounTRUNCzword remnantVAFINzfinite verb, auxiliaryVAIMPzimperative, auxiliaryVAINFzinfinitive, auxiliaryVAPPzperfect participle, auxiliaryVMFINzfinite verb, modalVMINFzinfinitive, modalVMPPzperfect participle, modalVVFINzfinite verb, fullVVIMPzimperative, fullVVINFzinfinitive, fullVVIZUzinfinitive with "zu", fullVVPPzperfect participle, fullXYznon-word containing non-letterADASzaspect markerBAu   把 in ba-constructionCSDECu   的 in a relative clauseDEGu   associative 的DERu   得 in V-de const. and V-de-RDEVu   地 before VPETCu   for words 等, 等等IJLBu   被 in long bei-constLC	localizerMzmeasure wordMSPzother particleNRNTztemporal nounODzordinal numberONonomatopoeiaPu!   preposition excluding 把 and 被PNPUSBu   被 in short bei-constVAzpredicative adjectiveVCu   是 (copula)VEu   有 as the main verbVVz
other verbNPznoun phrasePPzprepositional phraseVPzverb phraseADVPzadverb phraseADJPzadjective phraseSBARPRTPNPzprepositional noun phraseaclz,clausal modifier of noun (adjectival clause)acompzadjectival complementadvclzadverbial clause modifieradvmodzadverbial modifieragentamodzadjectival modifierapposzappositional modifierattr	attributeauxauxpasszauxiliary (passive)casezcase markingccccompzclausal complementclf
classifiercomplmcomplementizercompoundconjconjunctcopcopulacsubjzclausal subject	csubjpasszclausal subject (passive)dativedepzunclassified dependentdet	discoursezdiscourse element
dislocatedzdislocated elementsdobjzdirect objectexpl	expletivefixedzfixed multiword expressionflatzflat multiword expressiongoeswithz	goes withhmodzmodifier in hyphenationhyphhypheninfmodzinfinitival modifierintjiobjzindirect objectlistmarkmarkermetazmeta modifiernegznegation modifiernmodzmodifier of nominalnnznoun compound modifiernpadvmodz!noun phrase as adverbial modifiernsubjznominal subject	nsubjpassznominal subject (passive)nounmodnpmodnumznumber modifiernumberznumber compound modifiernummodznumeric modifieroprdzobject predicateobjobjectoblzoblique nominalorphan	parataxispartmodzparticipal modifierpcompzcomplement of prepositionpobjzobject of prepositionposszpossession modifier
possessivezpossessive modifierpreconjzpre-correlative conjunctionprepzprepositional modifierprtpunctquantmodzmodifier of quantifierrcmodzrelative clause modifierrelcl
reparandumzoverridden disfluencyrootROOTvocativexcompzopen clausal complementaczadpositional case markeradczadjective componentagzgenitive attributeamszmeasure argument of adjectiveapp
appositionavczadverbial phrase componentcdcjcmcpcvczcollocational verb constructiondadhzdiscourse-level headdmzdiscourse markerepzexpletive eshdheadjujunctormnrzpostnominal modifiermomodifierngnegationnkznoun kernel elementnmcznumerical componentoazaccusative objectoczclausal objectogzgenitive objectopzprepositional objectparzparenthetical elementpd	predicatepgzphrasal genitivephplaceholderpmzmorphological particlepnczproper noun componentrczrelative clauserezrepeated elementrszreported speechsbsubjectsbpzpassivized subject (PP)spzsubject or predicatesvpzseparable verb prefixuczunit componentvoPERSONzPeople, including fictionalNORPz.Nationalities or religious or political groupsFACILITYz,Buildings, airports, highways, bridges, etc.FACORGz'Companies, agencies, institutions, etc.GPEzCountries, cities, statesLOCz3Non-GPE locations, mountain ranges, bodies of waterPRODUCTz-Objects, vehicles, foods, etc. (not services)EVENTz4Named hurricanes, battles, wars, sports events, etc.WORK_OF_ARTzTitles of books, songs, etc.LAWzNamed documents made into laws.LANGUAGEzAny named languageDATEz%Absolute or relative dates or periodszTimes smaller than a dayzPercentage, including "%"zMonetary values, including unitz&Measurements, as of weight or distancez"first", "second", etc.z,Numerals that do not fall under another typezNamed person or family.zLMiscellaneous entities, e.g. events, nationalities, products or works of artzHFestivals, cultural events, sports events, weather phenomena, wars, etc.z~Product, i.e. artificially produced entities including speeches, radio shows, programming languages, contracts, laws and ideaszyWords (and phrases?) that are dervied from a name, but not a name in themselves, e.g. 'Oslo-mannen' ('the man from Oslo')zGGeo-political entity, with a locative sense, e.g. 'John lives in Spain'z\Geo-political entity, with an organisation sense, e.g. 'Spain declined to meet with Belgium')TIMEPERCENTMONEYQUANTITYORDINALCARDINALPERMISCEVTPRODDRVGPE_LOCGPE_ORG)r   errorsr   r   r   r   r   r   r   <module>   s<   	
 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~                 	  
                                   "  #  $  %  &  '  (  )  +  ,  -  .  0  1  2  3  4  5  6  7  ;  <  =  >  ?  @  A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  [  \  ]  ^  _  `  a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z  {  |  }  ~                 	    
                                                                                             !    "    #    $    %    &    '    (    )    *    +    ,    -    .    /    0    4    5    6    7    8    9    :    ;    <    =    >    ?    @    A  