Changed number of cores for cosine similarity calculation to auto detect