from sklearn.feature_extraction.text import TfidfVectorizer documents = ["Текст страницы 1", "Текст страницы 2"] vectorizer = TfidfVectorizer() matrix = vectorizer.fit_transform(documents) print(matrix.toarray()) # Матрица релевантности
Самая закрытая социальная сеть в мире! Впервые! Для всех и для каждого! И только на Trepp.space

The most closed social network in the wolrd! For the first time! For everyone and for each person! And only on Trepp.space

В разработке! В разработке! В разработке! In development! In development! In development!
image alt
from sklearn.feature_extraction.text import TfidfVectorizer documents = ["Текст страницы 1", "Текст страницы 2"] vectorizer = TfidfVectorizer() matrix = vectorizer.fit_transform(documents) print(matrix.toarray()) # Матрица релевантности