rasa/core/server.py
async def evaluate_stories(request: Request):
        """Evaluate stories against the currently loaded model."""
        import rasa_nlu.utils

        tmp_file = rasa_nlu.utils.create_temporary_file(request.body,
                                                        mode='w+b')
        use_e2e = utils.bool_arg(request, 'e2e', default=False)
        try:
            evaluation = await test(tmp_file, app.agent, use_e2e=use_e2e)
            return response.json(evaluation)
        except ValueError as e:
            raise ErrorResponse(400, "FailedEvaluation",
                                "Evaluation could not be created. Error: {}"
                                "".format(e))
Evaluate stories against the currently loaded model.
Evaluate stories against the currently loaded model.
Evaluate stories against the currently loaded model .
async def evaluate_stories(request: Request):
        import rasa_nlu.utils
        tmp_file = rasa_nlu.utils.create_temporary_file(request.body,
                                                        mode='w+b')
        use_e2e = utils.bool_arg(request, 'e2e', default=False)
        try:
            evaluation = await test(tmp_file, app.agent, use_e2e=use_e2e)
            return response.json(evaluation)
        except ValueError as e:
            raise ErrorResponse(400, "FailedEvaluation",
                                "Evaluation could not be created. Error: {}"
                                "".format(e))
async def evaluate_stories ( request : Request ) : import rasa_nlu . utils tmp_file = rasa_nlu . utils . create_temporary_file ( request . body , mode = 'w+b' ) use_e2e = utils . bool_arg ( request , 'e2e' , default = False ) try : evaluation = await test ( tmp_file , app . agent , use_e2e = use_e2e ) return response . json ( evaluation ) except ValueError as e : raise ErrorResponse ( 400 , "FailedEvaluation" , "Evaluation could not be created. Error: {}" "" . format ( e ) )
Evaluate stories against the currently loaded model.
Evaluate stories against the currently loaded model .
"""Evaluate stories against the currently loaded model."""
request
Request