def __init__(self,
	             category_frequency_df,
	             document_category_df=None,
	             unigram_frequency_path=None):
		'''
		Parameters
		----------
		category_frequency_df : pd.DataFrame
			Index is term, columns are categories, values are counts
		document_category_df : pd.DataFrame, optional
			Columns are text, category. Values are text (string) and category (string)
		unigram_frequency_path : See TermDocMatrix
		'''
		if document_category_df is not None:
			assert set(document_category_df.columns) == set(['text', 'category'])
		self._document_category_df = document_category_df
		self.term_category_freq_df = category_frequency_df
		self._unigram_frequency_path = unigram_frequency_path
def __init__ ( self , category_frequency_df , document_category_df = None , unigram_frequency_path = None ) : if document_category_df is not None : assert set ( document_category_df . columns ) == set ( [ 'text' , 'category' ] ) self . _document_category_df = document_category_df self . term_category_freq_df = category_frequency_df self . _unigram_frequency_path = unigram_frequency_path
Parameters
		----------
		category_frequency_df : pd.DataFrame
			Index is term, columns are categories, values are counts
		document_category_df : pd.DataFrame, optional
			Columns are text, category. Values are text (string) and category (string)
		unigram_frequency_path : See TermDocMatrix