| from models.prediction import Prediction | |
| from repositories.intents_repository import IntentsRepository | |
| class IntentsService: | |
| def get_intent_by_id(prediction: Prediction): | |
| return IntentsRepository.get_elem_by_id[prediction.label] | |
| from models.prediction import Prediction | |
| from repositories.intents_repository import IntentsRepository | |
| class IntentsService: | |
| def get_intent_by_id(prediction: Prediction): | |
| return IntentsRepository.get_elem_by_id[prediction.label] | |