Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created December 12, 2018 18:51
Show Gist options
  • Select an option

  • Save FelixChop/02d75ce0fec1fd0e4f774112a9169250 to your computer and use it in GitHub Desktop.

Select an option

Save FelixChop/02d75ce0fec1fd0e4f774112a9169250 to your computer and use it in GitHub Desktop.
new_text = 'How many species of animals are there in Russia and in the US, and where are the biggest oceans?'
tokens = [stemmer.stem(token) for token in tokenizer.tokenize(new_text.lower()) if token not in stopwords_fr]
lda_model[dictionary_LDA.doc2bow(tokens)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment