title: CountVectorizer' object has no attribute 'get_feature_names_out'
body: <p>Why do i keep getting this error? I tried different versions of anaconda 3 but did not manage to get it done. What should i install to work it properly? I used sklearn versions from 0.20 - 0.23.</p>
  <h2>Error message: <a href="https://i.stack.imgur.com/rkqx3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rkqx3.png" alt="enter image description here" /></a></h2>
  <h2>Code:</h2>
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  import plotly.express as px
  from sklearn.feature_extraction.text import CountVectorizer
  from collections import Counter
  from wordcloud import WordCloud
  
  vectorizer = CountVectorizer(ngram_range=(2,2), analyzer='word')
  sparse_matrix = vectorizer.fit_transform(df['content'][:2000])
  frequencies = sum(sparse_matrix).toarray()[0]
  ngrams = pd.DataFrame(frequencies, index=vectorizer.get_feature_names_out(), columns=['frequency'])
  ngrams = ngrams.sort_values(by='frequency', ascending=False)
  ngrams
  </code></pre>