utils¶

Functions

convert_df_to_dataset

Convert pandas dataframe to TensorDataset

convert_df_to_examples

Convert dataframe to examples which can be fed into dataloader

convert_example_to_feature

Method to generate InputFeatures object from individual example row

convert_examples_to_features

Loop method to process all examples

get_all_evidence_utterance_from_conversation

Iterate through a conversation history to let each utterance be the evidence utterance.

load_examples

Load examples from dataframe

parse_args_and_load_config

Get config from config file using argparser

Classes

InputExample

Convert pandas dataframe data instance to InputExample instance for easier manipulation

InputFeatures

Convert InputExample instance to InputFeature instance for easier manipulation

RecconEmotionEntailmentData

Class to create torch Dataset instance, which is the required data type for Transformer’s Trainer