generate features for each subcategory. Output featureWords.pkl and model_data.pkl