Metadata-Version: 2.1
Name: instatext
Version: 0.0.2
Summary: instatext is a package to train text classifiers instantly.
Home-page: https://github.com/banjtheman/instatext
Author: Banjo Obayomi
Author-email: banjtheman@gmail.com
License: UNKNOWN
Keywords: python,text classifier,fasttext,nlp,spacy
Platform: UNKNOWN
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >3.6
Description-Content-Type: text/markdown

instatext: Train text classifiers instantly
====================================


`instatext` is a Python 3 library for processing textual data. It provides a simple API for training and predicting with text classifiers.




instatext leverages  `fasttext`, and `pandas`, for the heavy lifting


Get it now
----------
    $ pip install instatext 

Requirements
------------

- Python  >= 3.5

Example
--------
To train a model pass in a csv with the text and labels

text - the text to classify
labels - comma seperated list of labels

```
text,labels
sample text,"sample"
bad stuff,"bad,sample"
good stuff,"good,sample"
```



```python
import instatext
import logging


def main():
    print("hello")

    instatext.train_model("test_data/example.csv", "test")
    instatext.predict("test", "Predict my good text",0.5)


if __name__ == "__main__":
    loglevel = logging.INFO
    logging.basicConfig(
        format="%(asctime)s |%(levelname)s: %(message)s", level=loglevel
    )
    main()
```


