parameterizing core number
script for tf-idf transformation