ensure that gazetteMatching does not return empty blocks
downstream code assumed that gazetteMatching returned non
empty blocks, this assumption did not hold. closes
closes
@@ -286,6 +286,7 @@ def gazetteMatching(scored_blocks: Iterable[numpy.ndarray],
block.sort(order='score')
block = block[::-1]
+ if len(block):
if n_matches:
yield block[:n_matches].copy()
else:
