From 438ee898b82c4b063c6cb9358d608efefcebefa2 Mon Sep 17 00:00:00 2001 From: Susan Li Date: Sun, 17 Jun 2018 22:28:31 -0400 Subject: [PATCH] Add file --- helper.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 helper.py diff --git a/helper.py b/helper.py new file mode 100644 index 0000000..838bf53 --- /dev/null +++ b/helper.py @@ -0,0 +1,12 @@ +import os + + +def load_data(path): + """ + Load dataset + """ + input_file = os.path.join(path) + with open(input_file, "r") as f: + data = f.read() + + return data.split('\n')