utils¶
Functions
Iterate through a conversation history to let each utterance be the evidence utterance. |
|
Converts list of dict of train data to list of SquadExample |
|
Project the tokenized prediction back to the original text. |
|
Convert list of examples to TensorDataset |
|
Get config from config file using argparser |
|
[summary] |
|
Truncate length of SquadFeatures’ attributes |
|
Write final predictions to the json file and log-odds of null if needed. |
Classes
A single set of features of data. |
|
Class to create torch Dataset instance, which is the required data type for Transformer’s Trainer |