def _get_source_chunks(self, input_text, language=None):
chunks = ChunkList()<EOL>seek = <NUM_LIT:0><EOL>result = self._get_annotations(input_text, language=language)<EOL>tokens = result['<STR_LIT>']<EOL>language = result['<STR_LIT>']<EOL>for i, token in enumerate(tokens):<EOL><INDENT>word = token['<STR_LIT:text>']['<STR_LIT:content>']<EOL>begin_offset = token['<STR_LIT:text>']['<STR_LIT>']<EOL>label = token['<STR_LIT>']['<STR_LIT:label>']<EOL>pos = token['<STR_LIT>']['<STR_LIT>']<EOL>if begin_offset > seek:<EOL><INDENT>chunks.append(Chunk.space())<EOL>seek = begin_offset<EOL><DEDENT>chunk = Chunk(word, pos, label)<EOL>if chunk.label in _DEPENDENT_LABEL:<EOL><INDENT>chunk.dependency = i < token['<STR_LIT>']['<STR_LIT>']<EOL><DEDENT>if chunk.is_punct():<EOL><INDENT>chunk.dependency = chunk.is_open_punct()<EOL><DEDENT>chunks.append(chunk)<EOL>seek += len(word)<EOL><DEDENT>return chunks, language<EOL>
Returns a chunk list retrieved from Syntax Analysis results.

        Args:
          input_text (str): Text to annotate.
          language (:obj:`str`, optional): Language of the text.

        Returns:
          A chunk list. (:obj:`budou.chunk.ChunkList`)