Skip to content

Commit

Permalink
use join
Browse files Browse the repository at this point in the history
  • Loading branch information
tosemml authored Aug 23, 2023
1 parent 7badf23 commit ae93150
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions underthesea/utils/col_external_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ def __init__(self, word, senses=[]):
self.senses = senses

def __str__(self):
content = self.word + " "
for sense in self.senses:
content += sense.tag + ","
return content

return self.word + " " + ",".join([sense.tag for sense in self.senses])

def add_sense(self, sense):
self.senses.append(sense)

Expand Down

0 comments on commit ae93150

Please sign in to comment.