Skip to main content
Char Classifier
---------

Given a short phrase, train a neural network to classify it based on the characters that it contains.

The trainer takes in a file of phrases (separated by new line) and a file of target values (separated by new line).

To train on the sample data (parts of speech classification):

```
from phrase_classifier import PhraseClassificationTrainer, PhraseClassifier
p = PhraseClassificationTrainer("sample/words", "sample/parts-of-speech")
p.train([100, 100], 20, 100)
p.save("sample", "example-run")
```

This will save a trained model with the tag 'example-run' in the sample directory. To use that model, run:

```
k = PhraseClassifier("sample", "example-run")
print k.classify("dog")
```

Metadata

Release files for char-classifer 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for char-classifer 0.6.0
File Size Uploaded Provenance Actions
char-classifer-0.6.0.tar.gz 5.7 kB Without provenance Details for char-classifer-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for char-classifer 0.6.0
File Interpreter ABI Platform Actions
char_classifer-0.6.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for char_classifer-0.6.0-py2.py3-none-any.whl

Total release size: 12.1 kB

Release files / char-classifer-0.6.0.tar.gz

Download URL char-classifer-0.6.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
92ee7ddb37de0f1bcb215264863b2ee4d6234beec10834065360dea142f47a0f
BLAKE2b-256 checksum
How to use checksums
48b0498868c250b119ee16b2b47538a606f9f7a843bde193599cd8a3db0b86da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / char_classifer-0.6.0-py2.py3-none-any.whl

Download URL char_classifer-0.6.0-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1a985be66617dc696e31ce8cf96f3d229e27d3f29129c64e193d053508516544
BLAKE2b-256 checksum
How to use checksums
ac9a5815b75a7faaf9b60d772ed719632e06c26b4722f509f682da93a8156964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for char-classifer 0.6.0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page