Sequence-labeling is particularly convenient for nearest-neighbor based approaches, since a predictionŷ can be formed by simply concatenating labels extracted from the label-sequences associated with neighbors.
we will assume we have access to a database m) and their corresponding true label-sequences y (m) .