Skip to content

komgcn/AppleOrBeef

Repository files navigation

AppleOrBeef

Introduction
This is a basic deep neural network python NLP project.
The purpose is to learn python and tensorflow.
The goal is to train the neural network to be able to distinguish a statement whether it belongs to 'APPLE' or 'BEEF'
'APPLE' has lexicon full of fruits, eg: apple, orange, banana, etc
'BEEF' has lexicon full of meat, eg: beef, lamb, chicken, etc

Files

random_text_generator.py - generate 'apple.txt' and 'beef.txt' file, each file has specified number of lines of randomly generated strings

create_feature_sets.py - takes in two .txt file and vectorise the strings, also classified by [1,0] for 'APPLE' and [0,1] for 'BEEF', returns lists ready for training and testing

neural_network.py - the actual deep neural network model with 2 hidden layers. For training, testing and using.

About

AppleOrBeef Deep Neural Network Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages