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"
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()
Metadata
Release files for instatext 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| instatext-0.0.2.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| instatext-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / instatext-0.0.2.tar.gz
| Download URL | instatext-0.0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08f5c5eb442c8f63a31a940c8e5177af798967488a0ce58ea23cce55762bfb48
|
|
BLAKE2b-256 checksum How to use checksums |
e4e4200f047b203463bf699142f7786e32aace2f38ec08848f051f4efcf0e1cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Release files / instatext-0.0.2-py3-none-any.whl
| Download URL | instatext-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7a66bb2a68499123d005b132352a3af1eb0fa9dffc6d22500b72cd680aa31b3
|
|
BLAKE2b-256 checksum How to use checksums |
11bcb768a720b213180ab39dadec70dacdce308dfeae6d45303c5dfdd8a9abe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
|
Security for instatext 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.