Automatically compute features and number of samples in create_corpus