File size: 236 Bytes
602b5b1 |
1 2 3 4 5 6 7 8 |
class IntentExtractor:
def extract(self, tokens):
intents = []
for token in tokens:
if token in ['book','reserve','order','check']:
intents.append(token)
return list(set(intents))
|