fix: upd skill selector rules
@@ -30,18 +30,17 @@ class RuleBasedSelector(Component):
tokens = dialog['utterances'][-1]['text'].lower().split()
- skills_for_uttr.append("cobotqa")
- skills_for_uttr.append("program_y")
- skills_for_uttr.append("transfertransfo")
-
- # if len(set(tokens).intersection(self.wh_words)) > 0:
# skills_for_uttr.append("cobotqa")
# skills_for_uttr.append("program_y")
# skills_for_uttr.append("transfertransfo")
- # else:
- # skills_for_uttr.append("alice")
- # skills_for_uttr.append("cobotqa")
- # skills_for_uttr.append("transfertransfo")
+
+ if len(set(tokens).intersection(self.wh_words)) > 0:
+ skills_for_uttr.append("cobotqa")
+ skills_for_uttr.append("program_y")
+ skills_for_uttr.append("transfertransfo")
+ else:
+ skills_for_uttr.append("program_y")
+ skills_for_uttr.append("transfertransfo")
skill_names.append(skills_for_uttr)
