ó
ų`]c           @  sķ   d  Z  d d l m Z d d l Z d d l m Z d d l m Z d d  Z	 d d  Z
 d d  Z d	   Z d d
  Z e d k rē e	 d  e d  e
 d  e	 d  n  d S(   s-   
Provide structured access to documentation.
iĸĸĸĸ(   t   print_functionN(   t   wrap(   t   loadc         C  s   t  d |   d  S(   Nt   brown_tagset(   t   _format_tagset(   t
   tagpattern(    (    s(   lib/python2.7/site-packages/nltk/help.pyR      s    c         C  s   t  d |   d  S(   Nt   claws5_tagset(   R   (   R   (    (    s(   lib/python2.7/site-packages/nltk/help.pyR      s    c         C  s   t  d |   d  S(   Nt   upenn_tagset(   R   (   R   (    (    s(   lib/python2.7/site-packages/nltk/help.pyR      s    c      	   C  sm   xf |  D]^ } | | } | d | d g } t  | d d d d d d d } t d	 j | |   q Wd  S(
   Ns   : i    i   t   widthiK   t   initial_indents       t   subsequent_indents   
(   R   t   printt   join(   t   tagst   tagdictt   tagt   entryt   defnt   examples(    (    s(   lib/python2.7/site-packages/nltk/help.pyt   _print_entries$   s    
c         C  s°   t  d |  d  } | s0 t t |  |  n| | | k rO t | g |  n] t j |  } g  t |  D] } | j |  rk | ^ qk } | rĒ t | |  n
 t d  d  S(   Ns   help/tagsets/s   .pickles   No matching tags found.(   R   R   t   sortedt   ret   compilet   matchR   (   t   tagsetR   R   R   R   (    (    s(   lib/python2.7/site-packages/nltk/help.pyR   .   s    .t   __main__s   NN.*s   .*\$t	   UNDEFINEDt   NN(   t   __doc__t
   __future__R    R   t   textwrapR   t	   nltk.dataR   t   NoneR   R   R   R   R   t   __name__(    (    (    s(   lib/python2.7/site-packages/nltk/help.pyt   <module>
   s   		



