Skip to content

Commit

Permalink
fix multiple inference index error
Browse files Browse the repository at this point in the history
  • Loading branch information
gilpasternak authored Jun 7, 2023
1 parent 816e763 commit cf089c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zberta/intent_discovery/zberta.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def find_new_intents(self, utterances: List = None, lang='en'):
classes = unknown_intents_set([utterances[i]], lang)
else:
classes = self.z_classes
for class_set in classes[i]:
for class_set in classes[0]:
temp = class_set.replace('-', ' ').replace('None', '')
if temp not in pred_classes and len(temp) > 1:
pred_classes.append(temp)
Expand Down

0 comments on commit cf089c0

Please sign in to comment.