Skip to content

Commit

Permalink
Fix add_tags() in tagged_term
Browse files Browse the repository at this point in the history
  • Loading branch information
rsgoncalves committed Dec 2, 2023
1 parent 8b5cdd0 commit f95db93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text2term/tagged_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __repr__(self):
return f"<TaggedTerm term:{self.term} tags:{self.tags} original_term:{self.original_term}"

def add_tags(self, new_tags):
self.tags = list(self.tags) + new_tags
self.tags = list(self.tags) + list(new_tags)

def update_term(self, term):
self.term = term
Expand Down

0 comments on commit f95db93

Please sign in to comment.