
    /hb                     >    S SK Jr  S SKJr  S SKJr   " S S\5      rg)    )
ChunkScore)
deprecated)ParserIc                   @    \ rS rSrSrS r\" S5      S 5       rS rSr	g)	ChunkParserI   a#  
A processing interface for identifying non-overlapping groups in
unrestricted text.  Typically, chunk parsers are used to find base
syntactic constituents, such as base noun phrases.  Unlike
``ParserI``, ``ChunkParserI`` guarantees that the ``parse()`` method
will always generate a parse.
c                     [        5       e)z
Return the best chunk structure for the given tokens
and return a tree.

:param tokens: The list of (word, tag) tokens to be chunked.
:type tokens: list(tuple)
:rtype: Tree
)NotImplementedError)selftokenss     F/var/www/auris/envauris/lib/python3.13/site-packages/nltk/chunk/api.pyparseChunkParserI.parse   s     "##    zUse accuracy(gold) instead.c                 $    U R                  U5      $ )N)accuracy)r   golds     r   evaluateChunkParserI.evaluate&   s    }}T""r   c                     [        5       nU H1  nUR                  X0R                  UR                  5       5      5        M3     U$ )aK  
Score the accuracy of the chunker against the gold standard.
Remove the chunking the gold standard text, rechunk it using
the chunker, and return a ``ChunkScore`` object
reflecting the performance of this chunk parser.

:type gold: list(Tree)
:param gold: The list of chunked sentences to score the chunker on.
:rtype: ChunkScore
)r   scorer   leaves)r   r   
chunkscorecorrects       r   r   ChunkParserI.accuracy*   s9      \
GWjj1A&BC r    N)
__name__
__module____qualname____firstlineno____doc__r   r   r   r   __static_attributes__r   r   r   r   r      s+    	$ -.# /#r   r   N)nltk.chunk.utilr   nltk.internalsr   
nltk.parser   r   r   r   r   <module>r&      s    ' % &7 &r   