
    /h                     ,    S SK r S SKJr   " S S5      rg)    N)
overriddenc                   6    \ rS rSrSrS rS rS rS rS r	Sr
g	)
ParserI   a  
A processing class for deriving trees that represent possible
structures for a sequence of tokens.  These tree structures are
known as "parses".  Typically, parsers are used to derive syntax
trees for sentences.  But parsers can also be used to derive other
kinds of tree structure, such as morphological trees and discourse
structures.

Subclasses must define:
  - at least one of: ``parse()``, ``parse_sents()``.

Subclasses may define:
  - ``grammar()``
c                     [        5       e)z+
:return: The grammar used by this parser.
)NotImplementedError)selfs    F/var/www/auris/envauris/lib/python3.13/site-packages/nltk/parse/api.pygrammarParserI.grammar   s     "##    c                 l   [        U R                  5      (       a   [        U R                  " U//UQ70 UD65      $ [        U R                  5      (       a  S U R                  " U/UQ70 UD64 5       $ [        U R                  5      (       a  [        U R                  " U/UQ70 UD65      $ [        5       e)z
:return: An iterator that generates parse trees for the sentence.
    When possible this list is sorted from most likely to least likely.

:param sent: The sentence to be parsed
:type sent: list(str)
:rtype: iter(Tree)
c              3   0   #    U  H  nUc  M  Uv   M     g 7fN ).0trees     r
   	<genexpr> ParserI.parse.<locals>.<genexpr>1   s      CD Cs   	)r   parse_sentsnext	parse_one	parse_alliterr   r	   sentargskwargss       r
   parseParserI.parse%   s     d&&''(($A$A&ABB''!^^DB4B6BC 
 ''t=d=f=>>%''r   c                 $   ^ ^^ UUU 4S jU 5       $ )zO
Apply ``self.parse()`` to each element of ``sents``.
:rtype: iter(iter(Tree))
c              3   P   >#    U  H  nTR                   " U/TQ70 TD6v   M     g 7fr   )r   )r   r   r   r   r	   s     r
   r   &ParserI.parse_sents.<locals>.<genexpr>@   s$     Ded

41$1&1es   #&r   )r	   sentsr   r   s   ` ``r
   r   ParserI.parse_sents;   s    
 EeDDr   c                 @    [        U R                  " U/UQ70 UD65      $ )z:rtype: list(Tree))listr   r   s       r
   r   ParserI.parse_allB   s     DJJt5d5f566r   c                 B    [        U R                  " U/UQ70 UD6S5      $ )z:rtype: Tree or NoneN)r   r   r   s       r
   r   ParserI.parse_oneF   s"    DJJt5d5f5t<<r   r   N)__name__
__module____qualname____firstlineno____doc__r   r   r   r   r   __static_attributes__r   r   r
   r   r      s!    $(,E7=r   r   )	itertoolsnltk.internalsr   r   r   r   r
   <module>r3      s     %9= 9=r   