【发布时间】:2020-12-10 17:22:42
【问题描述】:
Countvectorizer 有特征名称,像这样。
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()
手套向量的特征名称是什么?
如何获得这些功能名称?
with open('glove_vectors', 'rb') as f:
model = pickle.load(f)
glove_words = set(model.keys())
我有如上图所示的 300 维的手套矢量文件。
手套向量的 300 个维度的名称是什么?
【问题讨论】:
标签: python vector nlp stanford-nlp word-embedding