sgnlp.models.emotion_entailment.utils.convert_df_to_examples¶
-
convert_df_to_examples
(df: pandas.core.frame.DataFrame) → List[sgnlp.models.emotion_entailment.utils.InputExample][source]¶ Convert dataframe to examples which can be fed into dataloader
- Parameters
df (pd.DataFrame) – df which contains ‘text’ and ‘labels columns
- Returns
list of InputExample
- Return type
List[InputExample]