llSourcell / Ai_reader
Licence: apache-2.0
AI Reader for Machine Learning for Hackers #7
Stars: ✭ 61
Programming Languages
python
139335 projects - #7 most used programming language
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].