soldni commited on
Commit
2ce0e0f
1 Parent(s): 637de94
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -31,6 +31,7 @@ def colorize(file_obj):
31
  table_content = []
32
 
33
  for row in data.iterrows():
 
34
  gold, genA, genB = nlp.pipe((
35
  row[1]['target summary'],
36
  row[1]['model summary A'],
@@ -38,7 +39,7 @@ def colorize(file_obj):
38
  ))
39
  tokens_gold = {token.lemma_.lower() for token in gold}
40
  table_content.append(
41
- [gold.text] +
42
  [
43
  ''.join(
44
  (
@@ -60,6 +61,7 @@ def colorize(file_obj):
60
  return '\n'.join((
61
  '<table>',
62
  "<tr>"
 
63
  "<td><b>Gold</b></td>",
64
  "<td><b>Model A</b></td>",
65
  "<td><b>Model B</b></td>",
 
31
  table_content = []
32
 
33
  for row in data.iterrows():
34
+ id_ = row[1]['example_id']
35
  gold, genA, genB = nlp.pipe((
36
  row[1]['target summary'],
37
  row[1]['model summary A'],
 
39
  ))
40
  tokens_gold = {token.lemma_.lower() for token in gold}
41
  table_content.append(
42
+ [id_, gold.text] +
43
  [
44
  ''.join(
45
  (
 
61
  return '\n'.join((
62
  '<table>',
63
  "<tr>"
64
+ "<td><b>id</b></td>",
65
  "<td><b>Gold</b></td>",
66
  "<td><b>Model A</b></td>",
67
  "<td><b>Model B</b></td>",