def __init__(self, base_directory):
        self.base_directory = base_directory
        self.index_path = os.path.join(self.base_directory, 'index')
        self.docs_path = os.path.join(self.base_directory, 'documents')
        self.stats_path = os.path.join(self.base_directory, 'stats.json')
        self.setup()
Sets up the object & the data directory.
dataset/ETHPy150Open toastdriven/microsearch/microsearch.py/Microsearch.__init__