Giter Club home page Giter Club logo

deep-learning-rnn-lstm-lda-topic-modeling-text-classifier's Introduction

deep-learning-rnn-lstm-lda-topic-modeling-text-classifier

Deep learning and Topic Modeling approaches mixed for text classification

Instructions

For training you need to prepare a CSV file with two columns, with the 'text' and 'label' headers, and run it from the command line as shown below:

python app.py --train data/train_all.csv

For testing a model you need to indicate the hfs5 model path and a CSV file with the 'text' and 'label' headers, as shown below:

python app.py --model models/YOUR_MODEL.hfs5 --test data/test_all.csv

The supported command line parameters are the following:

usage: app.py [-h] [--train TRAIN] [--test TEST] [--model MODEL]
              [--epochs EPOCHS] [--num_classes NUM_CLASSES]
              [--num_words NUM_WORDS] [--emb_dim EMB_DIM]
              [--batch_size BATCH_SIZE]

This script trains or evaluate a model.

optional arguments:
  -h, --help            show this help message and exit
  --train TRAIN         Filepath of the train file with the 'text' and 'label'
                        headers.
  --test TEST           Filepath of the test file with the 'text' and 'label'
                        headers.
  --model MODEL         Filepath of the hfs5 file.
  --epochs EPOCHS       Number of epoches to run.
  --num_classes NUM_CLASSES
                        Number of classes.
  --num_words NUM_WORDS
                        Number of common words.
  --emb_dim EMB_DIM     Number of embedded dimension.
  --batch_size BATCH_SIZE
                        Size of the batch.

deep-learning-rnn-lstm-lda-topic-modeling-text-classifier's People

Contributors

toxtli avatar

Watchers

 avatar

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.