Skip to content

Instantly share code, notes, and snippets.

@CyrilRJK
Created June 7, 2022 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CyrilRJK/1af565270d0309e698d8ffdbd23bdd16 to your computer and use it in GitHub Desktop.
Save CyrilRJK/1af565270d0309e698d8ffdbd23bdd16 to your computer and use it in GitHub Desktop.
vocabulary = cv.get_feature_names()
batch_vectorizer = artm.BatchVectorizer(data_format='bow_n_wd',
n_wd=data,
vocabulary=vocabulary)
dictionary = batch_vectorizer.dictionary
model_artm = get_artm_model(topic_names, batch_vectorizer.dictionary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment