I am doing topic modeling with tweets on Python. I am working on two time periods. I want to extracts topics with Spacy's textacy training the model on the corpus of both the time periods. Then, I want to analyse the weight of the topics on the tweets of only one period. I know how to do it on the whole corpus:
topic_weight_serie = pd.Series(model.topic_weights(doc_topic_matrix))
fig = plt.figure()
ax1 = fig.add_subplot(111)
bars = ax1.bar(range(len(topic_weight_serie)),topic_weight_serie, color='c', edgecolor='black')
I am quite sure the solution is very simple but I could not find it. Any idea? An option might be to save the model and use it on the part of tweets I want to analyse. If this is the way, how do I do it? Thank you very much!