| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Ensemble backend that combines results from multiple projects""" |
||
| 33 | def _suggest(self, text, project, params): |
||
| 34 | sources = annif.util.parse_sources(params['sources']) |
||
| 35 | hits_from_sources = self._suggest_with_sources(text, sources) |
||
| 36 | merged_hits = annif.util.merge_hits( |
||
| 37 | hits_from_sources, project.subjects) |
||
| 38 | self.debug('{} hits after merging'.format(len(merged_hits))) |
||
| 39 | return merged_hits |
||
| 40 |