以下のような親子継承を作成するにはどうすればよいですか....
class Synset(object):
def __init__(self, synset_id=None, w_num=None, word=None, ss_type=None, sense_number=None, tag_count=None):
self.synset_id = synset_id
self.w_num = w_num
self.word = word
self.ss_type = ss_type
self.sense_number = sense_number
self.tag_count = tag_count
def __repr__(self):
return repr((self.word))
class NounSynset(Synset):
def __init__(self, synset_id=None, w_num=None, word=None, ss_type=None, sense_number=None, tag_count=None):
super(NounSynset, self).__init__(synset_id=None, w_num=None, word=None, ss_type=None, sense_number=None, tag_count=None)
pass
ns = NounSynset(None, None, "Word")
print ns