nlp-rgr / services /intents_service.py
Max Bushuev
f
cf509fc
raw
history blame contribute delete
261 Bytes
from models.prediction import Prediction
from repositories.intents_repository import IntentsRepository
class IntentsService:
@staticmethod
def get_intent_by_id(prediction: Prediction):
return IntentsRepository.get_elem_by_id[prediction.label]