sgnlp.models.emotion_entailment.eval.evaluate

evaluate(cfg: sgnlp.models.emotion_entailment.data_class.RecconEmotionEntailmentArguments)[source]

Method to evaluate a trained RecconEmotionEntailmentModel.

Parameters

config (RecconEmotionEntailmentArguments) – RecconEmotionEntailmentArguments config load from config file.

Example:

import json
from sgnlp.models.emotion_entailment import evaluate
from sgnlp.models.emotion_entailment.utils import parse_args_and_load_config

cfg = parse_args_and_load_config('config/emotion_entailment_config.json')
evaluate(cfg)