§
    'ê[fš  ã                   óF   — d dl mZ d dlmZ d dlmZ  G d„ de¦  «        ZdS )é    )Ú
ChunkScore)Ú
deprecated)ÚParserIc                   óF   — e Zd ZdZd„ Z ed¦  «        d„ ¦   «         Zd„ ZdS )Ú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     úB/var/www/piapp/venv/lib/python3.11/site-packages/nltk/chunk/api.pyÚparsezChunkParserI.parse   s   € õ "Ñ#Ô#Ð#ó    zUse accuracy(gold) instead.c                 ó,   — |                       |¦  «        S )N)Úaccuracy)r
   Úgolds     r   ÚevaluatezChunkParserI.evaluate&   s   € à�}Š}˜TÑ"Ô"Ð"r   c                 ó¢   — t          ¦   «         }|D ]=}|                     ||                      |                     ¦   «         ¦  «        ¦  «         Œ>|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*   sS   € õ  ‘\”\ˆ
Øð 	Dð 	DˆGØ×Ò˜W d§j¢j°·²Ñ1AÔ1AÑ&BÔ&BÑCÔCÐCÐCØÐr   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   © r   r   r   r      sc   € € € € € ðð ð	$ð 	$ð 	$ð €ZÐ-Ñ.Ô.ð#ð #ñ /Ô.ð#ðð ð ð ð r   r   N)Únltk.chunk.utilr   Únltk.internalsr   Ú
nltk.parser   r   r   r   r   ú<module>r       sq   ðð 'Ð &Ð &Ð &Ð &Ð &Ø %Ð %Ð %Ð %Ð %Ð %Ø Ð Ð Ð Ð Ð ð&ð &ð &ð &ð &�7ñ &ô &ð &ð &ð &r   