Leaklens

scikit-learn__scikit-learn-10908

CountVectorizer's get_feature_names raise not NotFittedError when the vocabulary parameter is provided

Verdict: the issue points to the file or function that was changed (Tier B).

In the same manner I believe that the `get_feature_names` method should not raise `NotFittedError` if the vocabulary parameter is provided but the vectorizer has not been trained.

The text points to the exact place to change: “In the same manner I believe that the `get_feature_names` method should not raise `NotFittedError` if the vocabulary parameter is provided but the vectorizer has not bee…”

All 500 SWE-bench Verified tasks · more scikit-learn/scikit-learn tasks · How the check works