not_category_a_list=['Reject, Negative'],
	category_b_list=['Accept, Negative'],
	not_category_b_list=['Reject, Positive'],
	term_ranker=term_ranker,
	scorer=st.LogOddsRatioInformativeDirichletPrior(priors, 500, 'word'),
	labels={'a': 'Positive Reviews of Accepted Papers',
	        'b': 'Negative Reviews of Accepted Papers',
	        'not_a_and_not_b': 'Rejections',
	        'a_and_b': 'Acceptances',
	        'a_and_not_b': 'Positive Reviews',
	        'b_and_not_a': 'Negative Reviews',
	        'not_a': 'Negative Reviews of Rejected Papers',
	        'not_b': 'Positive Reviews of Rejected Papers',
	        }
)
print('making html', time.time() - t0, 's')
html = st.produce_four_square_explorer(four_square=four_square,
                                       x_label='Pos-Neg',
                                       y_label='Accept-Reject',
                                       num_terms_semiotic_square=5,
                                       minimum_term_frequency=0,
                                       pmi_threshold_coefficient=0,
                                       term_ranker=term_ranker,
                                       metadata=(corpus._df['category'] + ': '
                                                 + corpus._df.rating + ', '
                                                 + corpus._df['title']))
fn = 'demo_four_square.html'
open(fn, 'wb').write(html.encode('utf-8'))
print('Open ' + fn + ' in Chrome or Firefox.')
print('done', time.time() - t0, 's')
                            category_b_list=['Accept, Negative'],
                            not_category_b_list=['Reject, Positive'],
                            term_ranker=term_ranker,
                            scorer=st.LogOddsRatioInformativeDirichletPrior(
                                priors, 500, 'word'),
                            labels={
                                'a': 'Positive Reviews of Accepted Papers',
                                'b': 'Negative Reviews of Accepted Papers',
                                'not_a_and_not_b': 'Rejections',
                                'a_and_b': 'Acceptances',
                                'a_and_not_b': 'Positive Reviews',
                                'b_and_not_a': 'Negative Reviews',
                                'not_a': 'Negative Reviews of Rejected Papers',
                                'not_b': 'Positive Reviews of Rejected Papers',
                            })
print('making html', time.time() - t0, 's')
html = st.produce_four_square_explorer(
    four_square=four_square,
    x_label='Pos-Neg',
    y_label='Accept-Reject',
    num_terms_semiotic_square=5,
    minimum_term_frequency=0,
    pmi_threshold_coefficient=0,
    term_ranker=term_ranker,
    metadata=(corpus._df['category'] + ': ' + corpus._df.rating + ', ' +
              corpus._df['title']))
fn = 'demo_four_square.html'
open(fn, 'wb').write(html.encode('utf-8'))
print('Open ' + fn + ' in Chrome or Firefox.')
print('done', time.time() - t0, 's')