def chunked(sentence):
<EOL>chunks = []<EOL>for word in sentence:<EOL><INDENT>if word.chunk is not None:<EOL><INDENT>if len(chunks) == <NUM_LIT:0> or chunks[-<NUM_LIT:1>] != word.chunk:<EOL><INDENT>chunks.append(word.chunk)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>ch = Chink(sentence)<EOL>ch.append(word.copy(ch))<EOL>chunks.append(ch)<EOL><DEDENT><DEDENT>return chunks<EOL>
Returns a list of Chunk and Chink objects from the given sentence.
        Chink is a subclass of Chunk used for words that have Word.chunk == None
        (e.g., punctuation marks, conjunctions).