I customize the sentiment analysis code to my needs using a YouTube video from someone who posted this code to the public and ran into a serious problem. All advice on solving this issue does not help me, I do not know what to do, the get_fearutes_name method also does not work
import re
import time
from tqdm import tqdm
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import nltk
from nltk.corpus import stopwords as nltk_stopwords
from pymystem3 import Mystem
from wordcloud import WordCloud
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.model_selection import cross_validate
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import *
app_counter = CountVectorizer(ngram_range=(1, 1))
app_count = app_counter.fit_transform(app_reviews_df['text_clear'])
app_count.toarray().sum(axis = 0)
app_count.get_feature_names_out().shape
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-67-5e08d135d61f> in <module>
----> 1 app_count.get_feature_names_out().shape
/usr/local/lib/python3.8/dist-packages/scipy/sparse/base.py in __getattr__(self, attr)
685 return self.getnnz()
686 else:
--> 687 raise AttributeError(attr + " not found")
688
689 def transpose(self, axes=None, copy=False):
AttributeError: get_feature_names_out not found