transform the input data using the count vectorizerinput_tc vectorizer_count transform(input_datanowwe will transform the vectorized data using the tfidf transformerinput_tfidf tfidf transform(input_tcwe will predict the output categoriespredictions classifier predict(input_tfidfthe output is generated as followsfor sentcategory in zip(input_datapredictions)print('\ninput data:'sent'\ category:'category_map[training_data target_names[category]]the category predictor generates the following outputdimensions of training data( input datadiscovery was space shuttle categoryspace input datahinduchristiansikh all are religions categoryreligion input datawe must have to drive safely categoryautos input datapuck is disk made of rubber categoryhockey input datatelevisionmicrowaverefrigrated all uses electricity categoryelectronics gender finder this problem statementa classifier would be trained to find the gender (male or femaleby providing the names we need to use heuristic to construct feature vector and train