Skip to content

Commit

Permalink
Merge 285ae83 into 03de6a1
Browse files Browse the repository at this point in the history
  • Loading branch information
kowey committed Jun 3, 2015
2 parents 03de6a1 + 285ae83 commit 8ec088e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions attelo/parser/intra.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,14 @@ def _for_inter_fit(dpack, target):

def fit(self, dpacks, targets, cache=None):
caches = self._split_cache(cache)
dpacks_intra, targets_intra = self.dzip(self._for_intra_fit,
dpacks, targets)
dpacks_inter, targets_inter = self.dzip(self._for_inter_fit,
dpacks, targets)
if dpacks:
dpacks_intra, targets_intra = self.dzip(self._for_intra_fit,
dpacks, targets)
dpacks_inter, targets_inter = self.dzip(self._for_inter_fit,
dpacks, targets)
else:
dpacks_intra, targets_intra = dpacks, targets
dpacks_inter, targets_inter = dpacks, targets
self._parsers.intra.fit(dpacks_intra, targets_intra,
cache=caches.intra)
self._parsers.inter.fit(dpacks_inter, targets_inter,
Expand Down

0 comments on commit 8ec088e

Please sign in to comment.