vaishali commited on
Commit
184e82e
1 Parent(s): 66a54f9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -37,7 +37,7 @@ def process_row(row: List, row_index: int):
37
  def process_table(table_content: Dict):
38
  table_str = process_header(table_content["header"]) + " "
39
  for i, row_example in enumerate(table_content["rows"]):
40
- table_str += self.process_row(row_example, row_index=i + 1) + " "
41
  return table_str.strip()
42
 
43
  # load the dataset
@@ -51,7 +51,7 @@ for sample in hinditableQA['train']:
51
  # create the input sequence: query + linearized input table
52
  table_content = {"header": list(input_table.columns)[1:], "rows": [list(row.values)[1:] for i, row in input_table.iterrows()]}
53
  linearized_inp_table = process_table(table_content)
54
- linearized_output_table = process_table({"name": None, "header": [self.translate_column(col) for col in list(answer.columns)],
55
  "rows": [list(row.values) for i, row in answer.iterrows()]})
56
  source = query + " " + linearized_inp_table
57
  target = linearized_output_table
 
37
  def process_table(table_content: Dict):
38
  table_str = process_header(table_content["header"]) + " "
39
  for i, row_example in enumerate(table_content["rows"]):
40
+ table_str += process_row(row_example, row_index=i + 1) + " "
41
  return table_str.strip()
42
 
43
  # load the dataset
 
51
  # create the input sequence: query + linearized input table
52
  table_content = {"header": list(input_table.columns)[1:], "rows": [list(row.values)[1:] for i, row in input_table.iterrows()]}
53
  linearized_inp_table = process_table(table_content)
54
+ linearized_output_table = process_table({"name": None, "header": [translate_column(col) for col in list(answer.columns)],
55
  "rows": [list(row.values) for i, row in answer.iterrows()]})
56
  source = query + " " + linearized_inp_table
57
  target = linearized_output_table