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 chClassifier 0.6.2

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

Source distribution (sdist)

Source distribution for chClassifier 0.6.2
File Size Uploaded
chClassifier-0.6.2.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chClassifier 0.6.2
File Interpreter ABI Platform
chClassifier-0.6.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.9 kB

Release files / chClassifier-0.6.2.tar.gz

Download URL chClassifier-0.6.2.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
27a420001b7f89abd8cd27dc6917eddc3e9d69593cb1ad21e19104210d56ff01
BLAKE2b-256 checksum
How to use checksums
55c04c66588de730640d24ff3e230e90b418ef5f470fcdfeef91113e2196cda8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / chClassifier-0.6.2-py2.py3-none-any.whl

Download URL chClassifier-0.6.2-py2.py3-none-any.whl
Size 10.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6d0d1728b7dd0c2ecf84224e0e80fc6b52e7af4d28f5a765b491632dbf0cf655
BLAKE2b-256 checksum
How to use checksums
14cb705de16ccc8a83aad26391cc0aee9cb0a7d6c4edde6704501230c014f5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.6.4

2 release files

0.6.3

2 release files

This release

0.6.2 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

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