andreslu commited on
Commit
5a65d09
1 Parent(s): 942c42a

Update inductor.py

Browse files
Files changed (1) hide show
  1. inductor.py +1 -1
inductor.py CHANGED
@@ -96,7 +96,7 @@ class BartInductor(object):
96
  ret = [t[0].replace('<ent0>','<mask>').replace('<ent1>','<mask>') for t in tB_probs]
97
  new_ret = []
98
  for temp in ret:
99
- temp = self.clean(temp[0].strip())
100
  if len(new_ret) < topk and temp not in new_ret:
101
  new_ret.append(temp)
102
 
 
96
  ret = [t[0].replace('<ent0>','<mask>').replace('<ent1>','<mask>') for t in tB_probs]
97
  new_ret = []
98
  for temp in ret:
99
+ temp = self.clean(temp.strip())
100
  if len(new_ret) < topk and temp not in new_ret:
101
  new_ret.append(temp)
102