human
40. 係り受け解析結果(形態素)
形態素を表すクラスMorphを実装せよ．このクラスは表層形（surface），基本形（base）, 
品詞（pos），品詞細分類1（pos1）をメンバ変数に持つこととする．
さらに，CaboChaの解析結果（neko.txt.cabocha）を読み込み，各文をMorphオブジェクトのリストとして表現し，3文目の形態素列を表示せよ"
Please write code following the instructions in jupyter notebook style.
assistant
#Here is code to 40.

class Morph(object):
    def __init__(self, _surface, _base, _pos, _pos1):
        self.surface = _surface
        self.base = _base
        self.pos = _pos
        self.pos1 = _pos1

sentence_list = []
object_list = []    
sentences = [i.strip('\n') for i in open('neko_lattice.txt.cabocha') \
             if i[0] not in ('*', '　')]
sentences = [i.split('\t') for i in sentences if i[0] not in ('EOS')]
surface = [s[0] for s in sentences]
attribute = [s[1].split(',') for s in sentences]

for i, j in zip(surface, attribute):
    object_list.append(Morph(i, j[6], j[0], j[1]))
    if i in ('。'):
        sentence_list.append(object_list)
        object_list = []