Copied and outlines TfidfReducer.