johnpineda4 / AI_Reader

AI Reader for Machine Learning for Hackers #7

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

This code will reword an input phrase from the user using Google's Parsey McParseface parser. More information can be found in the original repo. This the code for 'Build an AI Reader' on Youtube

Dependencies

  • Python 2.7 - (https://www.python.org/downloads/)
  • bazel - instructions here
  • swig brew install swig
  • protobuf pip install -U protobuf==3.0.0b2
  • asciitree pip install -U protobuf==3.0.0b2
  • numpy pip install numpy

Use pip to install any missing dependencies

Basic Usage

Step 1 - Build from source

  cd syntaxnet/tensorflow
  ./configure
  cd ..
  bazel test syntaxnet/... util/utf8/...
  # On Mac, run the following:
  bazel test --linkopt=-headerpad_max_install_names \
    syntaxnet/... util/utf8/...

Step 2 - Run the demo class with an input phrase of your choice

cd syntaxnet
python test.py find me a restaurant in san francisco

Sample output:

Intent is: discover restaurant

Credits

Credit for the vast majority of code here goes to The SyntaxNet team at Google. I've merely created a wrapper around some of the important functions to get people started.

About

AI Reader for Machine Learning for Hackers #7

License:Apache License 2.0


Languages

Language:Python 52.0%Language:C++ 44.8%Language:Shell 1.6%Language:Protocol Buffer 1.0%Language:Makefile 0.6%