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.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 chClassifier 0.6.0
File Size Uploaded
chClassifier-0.6.0.tar.gz 5.7 kB Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / chClassifier-0.6.0.tar.gz

Download URL chClassifier-0.6.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
77727d75c9a875316ce34ff611fa86ca3945627a93807b7df8643915c0b91d37
BLAKE2b-256 checksum
How to use checksums
70e9b965651fdc7e385c7518b7e34242833a08f73c941c960601b420b87b8c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL chClassifier-0.6.0-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2a732e71f9da68ddab55a559f0c7df99cc5192b00cf3e195127175898a477489
BLAKE2b-256 checksum
How to use checksums
3a312be65a9342fdb6db8cb9af9248a2b343876ce46943c159891b873a570292
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

0.6.2

2 release files

0.6.1

2 release files

This release

0.6.0 This release

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