sgnlp.models.emotion_entailment.train.train_model¶
-
train_model
(train_config: sgnlp.models.emotion_entailment.data_class.RecconEmotionEntailmentArguments)[source]¶ Method for training RecconEmotionEntailmentModel.
- Parameters
train_config (
RecconEmotionEntailmentArguments
) – RecconEmotionEntailmentArguments config load from config file.
Example:
import json from sgnlp.models.emotion_entailment import train from sgnlp.models.emotion_entailment.utils import parse_args_and_load_config config = parse_args_and_load_config('config/emotion_entailment_config.json') train(config)