changed weighting for tf-idf to put it into a reasonable range