Countvectorizer has feature names, like this.
vectorizer = CountVectorizer(min_df=10,ngram_range=(1,4), max_features=15000)
vectorizer.fit(X_train['essay'].values) # fit has to happen only on train data
X_train_essay_bow = vectorizer.transform(X_train['essay'].values)
feature_names= vectorizer.get_feature_names()
What would be the feature names for a glove vector?
How to get those feature names?
with open('glove_vectors', 'rb') as f:
model = pickle.load(f)
glove_words = set(model.keys())
I have the glove vector file of 300 dimensions like the above shown.
What would be the name of the 300 dimensions of the glove vectors?