You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abstract the dataset by defining a new data structure with datapack. Intuitively, a DataPack consists of five parts: question, answer, gt_answer, contexts, and gt_contexts. Currently, we leave search_query and gt_search_query as future work.
At now, we require each metrics to implement the api:define compute(self, dataset: Dataset) -> (score, Dataset). The column names of the dataset object should be in ["questions", "contexts", "gt_contexts", "answers", "gt_answers"]. An example of dataset are as follows:
Abstract the dataset by defining a new data structure with datapack. Intuitively, a DataPack consists of five parts:
question
,answer
,gt_answer
,contexts
, andgt_contexts
. Currently, we leavesearch_query
andgt_search_query
as future work.Examples:
In this way, we can add many inplace functions to process datapack. Some basic usage are as follows:
The text was updated successfully, but these errors were encountered: