Osp parties extraction: improved algorithm to perform better for part 2 of test set