Skip to main content

seq2class is developed for text classification using LSTM

Project description

seq2class |Build Status| |PyPI version|

seq2class is a one stop solution for text classification. Text classification is made easy via seq2class package using sequential model(LSTM). This package is build by harnesing the capabilities of LSTM(Long short term Memory) model.

Requirement

seq2class support Python 3.6 or newer.

Installation

.. code:: shell

pip install seq2class

Example

This package is being developed for text classification.

data = 'movies.csv'
labels = 'title'
text = 'genres'

s = Sequence2class()
X_train, X_test, y_train, y_test = s.train_test_split(data, labels, text)
trained_model = s.fit_train(X_train, y_train, 500, 50, 7789, 5, 4)
prediction = s.predict(trained_model, X_test, y_train, 4)

where movies.csv is a training file containing text and labels.

References

DataSet information


[1]  movies.csv dataset have been used for research purpose from this `*link* <http://files.grouplens.org/datasets/movielens/ml-latest-small.zip>`.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seq2class-0.2.0.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file seq2class-0.2.0.tar.gz.

File metadata

  • Download URL: seq2class-0.2.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.7.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for seq2class-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c76c89bc2bcf3c25c75ba7a06c77fb772b3271418a816baf3bb55ec83d490b10
MD5 16df265cff26ed60b44cccca0583f5df
BLAKE2b-256 7065404b420748ba39635827b0995f204da292d35be493856c407ddcb9fd7354

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page