%load_ext version_information
%version_information numpy, pandas, re, bs4, pickle, gensim, spacy, pyLDAvis
import warnings
warnings.filterwarnings("ignore",category=DeprecationWarning)
import os
import pickle
import pyLDAvis
hansard_saves_directory = os.path.join('', 'saves/hansard/')
st_saves_directory = os.path.join('', 'saves/st/')
Corpus is 5,227 speeches from Singapore Members of Parliament
Time period: 2005 to 2016
Pre-processing
hansard_ldavis_directory = os.path.join(hansard_saves_directory, 'ldavis-hansard-92')
with open(hansard_ldavis_directory) as f:
hansard_ldavis = pickle.load(f)
pyLDAvis.display(hansard_ldavis)
Corpus is 3,425 ST articles with quotes from Singapore Members of Parliament
Time period: 2005 to 2016
Pre-processing:
st_ldavis_directory = os.path.join(st_saves_directory, 'ldavis-st-40')
with open(st_ldavis_directory) as f:
st_ldavis = pickle.load(f)
pyLDAvis.display(st_ldavis)