現時点ではこんなカンジ。 def zenrize(self, sentence): postdata = { 'appid' : self.appid, 'sentence' : sentence.encode('utf-8'), } params = urllib.urlencode(postdata) result = urllib.urlopen(self.url, params) tree = ElementTree.XML(result.read()) # 係り受け解析の結果を利用し、適切な挿入箇所を判定する text = '' chunk_list = tree.find('{urn:yahoo:jp:jlp:DAService}Result').find('{urn:yahoo:jp:jlp:DAService}ChunkList') for chunk in chunk_l