³ò
3ÒÇIc           @   s*   d  d k  l Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   ParserIt   ChunkParserIc           B   s   e  Z d  Z d „  Z RS(   s6  
    A processing interface for identifying non-overlapping groups in
    unrestricted text.  Typically, chunk parsers are used to find base
    syntactic constituants, such as base noun phrases.  Unlike
    L{ParserI}, C{ChunkParserI} guarantees that the C{parse} method
    will always generate a parse.
    c         C   s   d p
 t  d ‚ d S(   só   
        @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: C{list} of L{tuple}
        @rtype: L{Tree}
        i    s%   ChunkParserI is an abstract interfaceN(   t   AssertionError(   t   selft   tokens(    (    s$   /p/zhu/06/nlp/nltk/nltk/chunk/api.pyt   parse   s    	(   t   __name__t
   __module__t   __doc__R   (    (    (    s$   /p/zhu/06/nlp/nltk/nltk/chunk/api.pyR      s   N(   t
   nltk.parseR    R   (    (    (    s$   /p/zhu/06/nlp/nltk/nltk/chunk/api.pys   <module>   s   