Skip to content

Commit

Permalink
Update nade.py
Browse files Browse the repository at this point in the history
  • Loading branch information
inkrement authored Jul 22, 2023
1 parent 66e3847 commit 39f4302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nade/nade.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def predict_emojis(
predict emotions based on emoji (stage 2)
'''
def predict(self, txts: List[str], dimensions: None | List[str]) -> List[str]:
dims_ = dimensions if dimensions not None else self.labels
dims_ = dimensions if dimensions is not None else self.labels
ft_op = self.predict_emojis(txts, sort_by_key=True, k=151)
X, _ = zip(*ft_op)

Expand Down

0 comments on commit 39f4302

Please sign in to comment.