i-machine-think/diagNNose

Fix sen_idx for sliced corpus in Extractor

jumelet opened this issue · 0 comments

examples = [ex for ex in self.examples if ex.sen_idx in sen_ids]

When taking a slice that does not start at 0 this leads to a bug in the Extractor which can not handle non-contiguous sen_ids.