From f420a6b65093827e5c0381e19e2b6c724ca32fd1 Mon Sep 17 00:00:00 2001 From: Omar Mohamed <42470033+omarmohamed101@users.noreply.github.com> Date: Mon, 23 Aug 2021 14:15:37 +0200 Subject: [PATCH] update the open func with right parameters --- feature_selection/find_signature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feature_selection/find_signature.py b/feature_selection/find_signature.py index e60c06fd3d8..78f1893f4f6 100644 --- a/feature_selection/find_signature.py +++ b/feature_selection/find_signature.py @@ -10,8 +10,8 @@ ### mini-project. words_file = "../text_learning/your_word_data.pkl" authors_file = "../text_learning/your_email_authors.pkl" -word_data = joblib.load( open(words_file, "r")) -authors = joblib.load( open(authors_file, "r") ) +word_data = joblib.load( open(words_file, "rb")) +authors = joblib.load( open(authors_file, "rb") )