equal
deleted
inserted
replaced
35 |
35 |
36 def __init__(self, pos, tr_list = None, ex_list = None, syn_list = None, ant_list = None, topic_list = None): |
36 def __init__(self, pos, tr_list = None, ex_list = None, syn_list = None, ant_list = None, topic_list = None): |
37 if not pos: |
37 if not pos: |
38 raise ParseException("Part of speech expected...\n") |
38 raise ParseException("Part of speech expected...\n") |
39 self.pos = pos |
39 self.pos = pos |
40 if tr_list: |
40 self.tr_list = tr_list |
41 self.tr_list = tr_list |
41 if not tr_list: |
42 else: |
|
43 self.tr_list = [] |
42 self.tr_list = [] |
44 self.ex_list = ex_list |
43 self.ex_list = ex_list |
45 self.syn_list = syn_list |
44 self.syn_list = syn_list |
46 self.ant_list = ant_list |
45 self.ant_list = ant_list |
47 self.topic_list = topic_list |
46 self.topic_list = topic_list |