Before you begin learning to program the D-Wave One, you should install several free software packages. The example we’re going to use (building a small piece of software that reads in a person’s first name and attempts to classify it as either “male” or “female”) requires some basic understanding of a field known as Natural Language Processing (NLP), which is just the application of computing methods to studying and manipulating human languages. If you don’t know anything about teaching machines to learn, or NLP, don’t worry! We will only need some very basic ideas and tools from these fields. I find the issues in NLP to be intensely fascinating — I hope you will too.
We’re going to code in Python 2.7, so I’d recommend you use this version. Never coded in Python before? Don’t worry. It is super easy and fun to learn and use. Four months ago I’d never written a single line of Python code, and now all the girls love me for my mad coding skillz, OK maybe not.
Alright so please install the following packages:
The material here assumes you are using Python 2.7. You can download Python from here.
Python comes with a simple programming environment called IDLE. While it is OK, what I’d highly recommend is the Jetbrains Integrated Development Environment (IDE) called Pycharm. You can evaluate Pycharm for free and if you decide you like it, you can buy a license for cheap. It is really worth it, it is a great product.
The Natural Language Tool Kit AKA NLTK
The code here uses NLTK version 2.0. You can get it from here. I also very highly recommend that you purchase the Natural Language Processing with Python book. This book taught me both Python and NLP. It is one of the best textbooks I have ever read and is very highly recommended, even if you just want to use it to learn Python!
This is a scientific computing library for Python.
That’s it for now!