ó
    ´OÂfb  ã                   ó>   • 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     Ú0/usr/lib/python3/dist-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Ø×Ñ˜W§j¡j°·±Ó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   