Skip to content
Snippets Groups Projects
Commit 36a26257 authored by Haak, R. (Romeo)'s avatar Haak, R. (Romeo)
Browse files

The way it is currently fed to extract_data and df_to_words will not work,...

The way it is currently fed to extract_data and df_to_words will not work, this needs to be looked at.
parent 6bf6d490
No related branches found
No related tags found
2 merge requests!39Refactoring/master,!37Refactor/refactored strategies
......@@ -88,9 +88,10 @@ class TxtReader(FileReader):
def read(self):
"""Method that is used to read the data into a workable format"""
with open(self.source_file_path, 'r') as source,\
open(self.shadow_file_path, 'r') as shadow:
self.source_words = self.extract_task_data(source)
self.shadow_words = self.extract_task_data(shadow)
self.source_words = self.df_to_words(self.source_words, "source")
self.shadow_words = self.df_to_words(self.shadow_words, "shadow")
return self.source_words, self.shadow_words
open(self.shadow_file_path, 'r') as shadow:
self.source_words = self.extract_task_data(source)
self.shadow_words = self.extract_task_data(shadow)
self.source_words = self.df_to_words(self.source_words, "source")
self.shadow_words = self.df_to_words(self.shadow_words, "shadow")
return self.source_words, self.shadow_words
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment