Browse Source

make code short

pull/3/head
Tony-HYX 3 years ago
parent
commit
1cd3570693
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      abl/abducer/kb.py

+ 1
- 3
abl/abducer/kb.py View File

@@ -77,9 +77,7 @@ class KBBase(ABC):
if not multiple_predictions:
return self.logic_forward(xs)
else:
res = []
for x in xs:
res.append(self.logic_forward(x))
res = [self.logic_forward(x) for x in xs]
return res

def abduce_candidates(self, pred_res, key, max_address_num=-1, require_more_address=0, multiple_predictions=False):


Loading…
Cancel
Save