decouple markPairs for activelearning
handle dicts