In [6]:
import pandas as pd

In [7]:
output_directory = r'C:\mallet\clinton\data\globals\samples'

In [8]:
topic_keys = pd.read_csv(r'{}\topic-keys.txt'.format(output_directory), delimiter='\t', header=None)
topic_keys.columns = ['topic#', 'beta', 'terms']

In [9]:
for index, row in topic_keys.iterrows():
    print('Topic #:', int(row[0])+1, '| beta ->', row[1])
    print()
    print('  - keys:', row[2])
    print()


Topic #: 1 | beta -> 0.625

  - keys: time year day years good make long usd told part today back book women million job office big law times 

Topic #: 2 | beta -> 0.625

  - keys: email call state secretary tomorrow pls thx talk time monday work huma office good lona print today send phone discuss 

Topic #: 3 | beta -> 0.625

  - keys: china senate vote staff bill back chinese nuclear house congress start senator defense talk treaty national final deal afghanistan republican 

Topic #: 4 | beta -> 0.625

  - keys: people work including government health security plan care important support term community working international put current local move hope children 

Topic #: 5 | beta -> 0.625

  - keys: party obama israel political house republican israeli democrats republicans voters election white democratic peace conservative jewish american mcchrystal state netanyahu 

Topic #: 6 | beta -> 0.625

  - keys: state department information diplomacy house case world benghazi states clinton produced subject development secretary date global officials agreement foreign speech 

Topic #: 7 | beta -> 0.625

  - keys: president obama policy clinton american administration public united foreign government washington world war military power campaign country leaders percent iran 

Topic #: 8 | beta -> 0.625

  - keys: fyi cheryl mills haiti cdm email branch wjc hrc clinton gore palau school call department food carleto hill approach release 


In [ ]: