Example #1
0
 def saveData(self, res, sen):
     df1 = pd.DataFrame(res)
     sv = GetDatasetPath(PROCESSED['html_review'], choice=self.choice)
     sv.saveDataset(df1)
     df1 = pd.DataFrame(sen)
     sv = GetDatasetPath(PROCESSED['sentiment'], choice=self.choice)
     sv.saveDataset(df1)
Example #2
0
 def savePrepared(self, trainTestVal):
     empty_df = pd.DataFrame()
     store_res = GetDatasetPath(SPLIT['X_train_pad'],
                                data=trainTestVal[0],
                                choice=self.choice)
     store_res.saveDataset(empty_df)
     store_res = GetDatasetPath(SPLIT['y_train'],
                                data=trainTestVal[1],
                                choice=self.choice)
     store_res.saveDataset(empty_df)
     store_res = GetDatasetPath(SPLIT['X_test_pad'],
                                data=trainTestVal[2],
                                choice=self.choice)
     store_res.saveDataset(empty_df)
     store_res = GetDatasetPath(SPLIT['y_test'],
                                data=trainTestVal[3],
                                choice=self.choice)
     store_res.saveDataset(empty_df)
Example #3
0
 def saveDataReview(self, res):
     df1 = pd.DataFrame(res)
     sv = GetDatasetPath(self.filename, choice=self.choice)
     sv.saveDataset(df1)