def gen_feats(self, p_set):
if self._initialized!=True:<EOL><INDENT>error_message = "<STR_LIT>"<EOL>log.exception(error_message)<EOL>raise util_functions.InputError(p_set, error_message)<EOL><DEDENT>textual_features = []<EOL>for i in range(<NUM_LIT:0>,len(p_set._essay_sets)):<EOL><INDENT>textual_features.append(self._extractors[i].gen_feats(p_set._essay_sets[i]))<EOL><DEDENT>textual_matrix = numpy.concatenate(textual_features, axis=<NUM_LIT:1>)<EOL>predictor_matrix = numpy.array(p_set._numeric_features)<EOL>print(textual_matrix.shape)<EOL>print(predictor_matrix.shape)<EOL>overall_matrix = numpy.concatenate((textual_matrix, predictor_matrix), axis=<NUM_LIT:1>)<EOL>return overall_matrix.copy()<EOL>
Generates features based on an iput p_set
p_set - PredictorSet