mattesko / COMP550-Project

Fake news text classification project for the McGill COMP 550 Natural Language Processing course.
1 stars 1 forks source link

Create feature engineering script #8

Open egproulx opened 4 years ago

egproulx commented 4 years ago

Script should preprocess the data and apply relevant feature engineering technique seen in class

violetguos commented 4 years ago

I'm getting this error related to pandas

In [4]: with open("preprocessed_training_dataframe.pkl", "rb") as jar: 
   ...:     data =pickle.load(jar) 
   ...:                                                                         
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-803e9c5c5903> in <module>
      1 with open("preprocessed_training_dataframe.pkl", "rb") as jar:
----> 2     data =pickle.load(jar)
      3 

ModuleNotFoundError: No module named 'pandas.core.internals.managers'; 'pandas.core.internals' is not a package
violetguos commented 4 years ago

I'm getting this error related to pandas

In [4]: with open("preprocessed_training_dataframe.pkl", "rb") as jar: 
   ...:     data =pickle.load(jar) 
   ...:                                                                         
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-4-803e9c5c5903> in <module>
      1 with open("preprocessed_training_dataframe.pkl", "rb") as jar:
----> 2     data =pickle.load(jar)
      3 

ModuleNotFoundError: No module named 'pandas.core.internals.managers'; 'pandas.core.internals' is not a package

fixed using

pd.read_pickle("preprocessed_training_dataframe.pkl")