Skip to content

Instantly share code, notes, and snippets.

@patrickvankessel
Created April 8, 2019 15:36
Show Gist options
  • Star 39 You must be signed in to star a gist
  • Fork 14 You must be signed in to fork a gist
  • Save patrickvankessel/0d5bd690910edece831dbdf32fb2fb2d to your computer and use it in GitHub Desktop.
Save patrickvankessel/0d5bd690910edece831dbdf32fb2fb2d to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nadia-felix
Copy link

Hi @patrickvankessel, in your examples, there are 8 topics. Is it obligatory to give anchors for all topics?
Can I only give anchors for 6 topics? I want the model to naturally learn two new topics.

@patrickvankessel
Copy link
Author

You can provide anchors for as many or as a few topics as you want - it's perfectly fine to leave some (or all) of them empty!

@ImKH310
Copy link

ImKH310 commented Feb 24, 2022

Hi! @patrickvankessel, I really appreciate your example that exactly what I want to implement!, however, I have one question about the final dataframe. In the final dataframe, each text of row has several topics that showed 1.0. How can I determine only one topic per one text? and Can I get any other float numbers except 0 or 1 as a result of CorEx?

@GiarteDataTeam
Copy link

How do you predict topics for new documents? I faced an issue when calling the model.predict() for new documents.

@eduamf
Copy link

eduamf commented May 3, 2022

Hi @patrickvankessel, I like your blog. I pass through the same process, thinking: "it's a big mess!". After some adjustments, with all topics "overcooked", I was shocked to see the incoherent results (to me)!

My question: you did not remove the stop word. I keep them before the last step in the process, but your topics maintained them. There was any reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment