cylance / IntroductionToMachineLearningForSecurityPros

Example code for our book Introduction to Artificial Intelligence for Security Professionals
GNU General Public License v3.0
149 stars 57 forks source link

Syntax error in extract_features_from_prevectors.py #3

Open Ropena opened 5 years ago

Ropena commented 5 years ago

When running the python script extract_features_from_prevectors.py it throws a syntax error in line 7:

line 7: syntax error near unexpected token (' line 7: with open ("prevectors.json", "r") as f:'

It also prints out: "from: too many arguments"

I'VE LOOKED AT THE CODE BUT COULD NOT FIND ANYTHING WRONG. ANY IDEAS?

ghost commented 5 years ago

First thought, py2 or py3? This was originally written for Python 2.7.