Giter Site home page Giter Site logo

tensorflow-text-classification's Introduction

tensorflow-text-classification

Text Classification with the High-Level TensorFlow API

This is the source code for the Medium article: https://medium.com/quantitative-technologies/text-classification-with-the-high-level-tensorflow-api-390809987a4f

File Descriptions

perceptron.py Trains and evaluates the Perceptron model.

perceptron_example.py Runs the Perceptron Example in the article.

mlp.py Trains and evaluates the Multilayer Perceptron model.

rnn.py Trains and evaluates Recurrent Neural Network model.

common.py Common routines used by the above code files.

tensorflow-text-classification's People

Contributors

quantitative-technologies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tensorflow-text-classification's Issues

How to query 1 email at the time?

I have used this code and works pretty well, you really push me forward alot, i was doing something simpler.
After getting the model the way i wanted i was ready to test it. i am readying emails directly from outlook so i have to process 1 by 1, your code process an array of emails.
So i create a text file for the query.py test, with 1 line. it will fail because is not an array of emails.
fails on this line:

def process_vocabulary():
                   .....
                  test_bow = np.array(list(vocabulary_processor.transform(test_sentences)))
                   ....

how to modify the code to work with just 1 email at the time.
this will really help me.

Thanks
Daniel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.