Skip to content

Commit

Permalink
Add file
Browse files Browse the repository at this point in the history
  • Loading branch information
susanli2016 authored Jun 18, 2018
1 parent d572f23 commit 438ee89
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions helper.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 438ee89

Please sign in to comment.