Ë
    çÍ:jb  ã                   ó>   — d dl mZ d dlmZ d dlmZ  G d„ de«      Zy)é    )Ú
ChunkScore)Ú
deprecated)ÚParserIc                   ó8   — e Zd ZdZd„ Z ed«      d„ «       Zd„ Zy)ÚChunkParserIa;  
    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                 ó   — t        «       ‚)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     úc/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/nltk/chunk/api.pyÚparsezChunkParserI.parse   s   € ô "Ó#Ð#ó    zUse accuracy(gold) instead.c                 ó$   — | j                  |«      S )N)Úaccuracy)r
   Úgolds     r   ÚevaluatezChunkParserI.evaluate&   s   € à�}‰}˜TÓ"Ð"r   c                 ó†   — t        «       }|D ]1  }|j                  || j                  |j                  «       «      «       Œ3 |S )a‹  
        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   zChunkParserI.accuracy*   sB   € ô  “\ˆ
Øò 	DˆGØ×Ñ˜W d§j¡j°·±Ó1AÓ&BÕCð	DàÐr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   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   