equal
deleted
inserted
replaced
130 if not sense: |
130 if not sense: |
131 raise Exception("""Empty sense for article: """ + headwords.__iter__().__next__()) |
131 raise Exception("""Empty sense for article: """ + headwords.__iter__().__next__()) |
132 if sense.pos: |
132 if sense.pos: |
133 FOUT.write("● «") |
133 FOUT.write("● «") |
134 FOUT.write(sense.pos) |
134 FOUT.write(sense.pos) |
135 FOUT.write("» ") |
135 FOUT.write("»") |
136 need_sep = False |
136 need_sep = False |
137 if sense.topic_list and len(sense.topic_list) > 0: |
137 if sense.topic_list and len(sense.topic_list) > 0: |
138 FOUT.write("⌊") |
138 FOUT.write(" topic: ") |
139 FOUT.write(", ".join(["{"+s+"}" for s in sense.topic_list])) |
139 FOUT.write(", ".join(["{"+s+"}" for s in sense.topic_list])) |
140 FOUT.write("⌉") |
|
141 need_sep = True |
140 need_sep = True |
142 if sense.ant_list and len(sense.ant_list) > 0: |
141 if sense.ant_list and len(sense.ant_list) > 0: |
|
142 if need_sep: |
|
143 FOUT.write(" |") |
143 FOUT.write(" ant: ") |
144 FOUT.write(" ant: ") |
144 FOUT.write("; ".join(["{"+s+"}" for s in sense.ant_list])) |
145 FOUT.write("; ".join(["{"+s+"}" for s in sense.ant_list])) |
145 need_sep = True |
146 need_sep = True |
146 if sense.syn_list and len(sense.syn_list) > 0: |
147 if sense.syn_list and len(sense.syn_list) > 0: |
147 if need_sep: |
148 if need_sep: |