sgnlp.models.emotion_entailment.utils.load_examples¶
-
load_examples
(examples: List[sgnlp.models.emotion_entailment.utils.InputExample], max_seq_length: int, tokenizer: sgnlp.models.emotion_entailment.tokenization.RecconEmotionEntailmentTokenizer) → torch.utils.data.dataset.TensorDataset[source]¶ Load examples from dataframe
- Parameters
examples (List[InputExample]) – list of InputFeatures
max_seq_length (int) – max sequence length
tokenizer (RecconEmotionEntailmentTokenizer) – RecconEmotionEntailmentTokenizer from sgnlp
- Returns
A tensordataset object containing all examples
- Return type
TensorDataset