| @@ 1477-1487 (lines=11) @@ | ||
| 1474 | ) |
|
| 1475 | loc_out.pop() |
|
| 1476 | ||
| 1477 | if ( |
|
| 1478 | i > 0 |
|
| 1479 | and s_mat[i - 1, j] + _sig_skip(src_tok[i - 1]) + score |
|
| 1480 | >= threshold |
|
| 1481 | ): |
|
| 1482 | loc_out = deepcopy(out) |
|
| 1483 | loc_out.append((src_tok[i - 1], '-')) |
|
| 1484 | _retrieve( |
|
| 1485 | i - 1, j, score + _sig_skip(src_tok[i - 1]), loc_out |
|
| 1486 | ) |
|
| 1487 | loc_out.pop() |
|
| 1488 | ||
| 1489 | if ( |
|
| 1490 | i > 1 |
|
| @@ 1436-1446 (lines=11) @@ | ||
| 1433 | ) |
|
| 1434 | loc_out.pop() |
|
| 1435 | ||
| 1436 | if ( |
|
| 1437 | j > 0 |
|
| 1438 | and s_mat[i, j - 1] + _sig_skip(tar_tok[j - 1]) + score |
|
| 1439 | >= threshold |
|
| 1440 | ): |
|
| 1441 | loc_out = deepcopy(out) |
|
| 1442 | loc_out.append(('-', tar_tok[j - 1])) |
|
| 1443 | _retrieve( |
|
| 1444 | i, j - 1, score + _sig_skip(tar_tok[j - 1]), loc_out |
|
| 1445 | ) |
|
| 1446 | loc_out.pop() |
|
| 1447 | ||
| 1448 | if ( |
|
| 1449 | i > 0 |
|