
    i                     `    S r SSK7  SSK7  SSKJr   " S S\5      rS r\S:X  a  \" 5         gg)	zV
Module for reading, writing and manipulating
Toolbox databases and settings fileids.
    )*)ToolboxDatac                   B    \ rS rSrSS jr     S	S jrS rS
S jrSrg)ToolboxCorpusReader   Nc           
          [        U R                  US5       VVs/ s H  u  p4[        X45      R                  US9PM     snn5      $ s  snnf )NT)key)concatabspathsr   parse)selffileidsr	   pathencs        T/home/james-whalen/.local/lib/python3.13/site-packages/nltk/corpus/reader/toolbox.pyxmlToolboxCorpusReader.xml   sQ     $(==$#?#?KT D&,,,5#?
 	
s   $A
c                     [        U R                  USS9 VVs/ s H*  u  px[        [        Xx5      R	                  X#XEU5      5      PM,     snn5      $ s  snnf )NT)include_encoding)r
   r   listr   fields)	r   r   stripunwrapencodingerrorsunicode_fieldsfileidr   s	            r   r   ToolboxCorpusReader.fields   sg      &*]]7T]%R &SMV ,33x
 &S	
 		
s   1A
c                     SU;   a	  US   nUS	 OSn/ nU R                   " U40 UD6 H8  u  pVXS:X  a  UR                  U/ 45        M   US   S   R                  XV45        M:     U$ ! [         a     MK  f = f)Nr	   lx)r   append
IndexError)r   r   kwargsr	   entriesmarkercontentss          r   r%   ToolboxCorpusReader.entries2   s    F?-CuC $G >v >F}"~.BKO**F+=> !?  " s   A%%
A32A3c                 h    U R                  U5       VVs/ s H  u  p4X2:X  d  M  UPM     snn$ s  snnf N)r   )r   r   r	   r&   r'   s        r   wordsToolboxCorpusReader.wordsC   s,    15W1EW1E-V1EWWWs   .. r*   )TTutf8strictN)r    )	__name__
__module____qualname____firstlineno__r   r   r%   r+   __static_attributes__r-       r   r   r      s(    
 
*"Xr5   r   c                      g r*   r-   r-   r5   r   demor7   G   s    r5   __main__N)	__doc__nltk.corpus.reader.apinltk.corpus.reader.utilnltk.toolboxr   CorpusReaderr   r7   r0   r-   r5   r   <module>r>      s=   
 % % $0X, 0Xf	 zF r5   