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.1

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.1
File Size Uploaded
chClassifier-0.6.1.tar.gz 5.6 kB Details

Built distribution (wheel)

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

Total release size: 12.1 kB

Release files / chClassifier-0.6.1.tar.gz

Download URL chClassifier-0.6.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3997afd195aa0fd9239274dd0634678fe287d41e43bea37bae204a80e0182942
BLAKE2b-256 checksum
How to use checksums
452d2f92edc18fbf1925cac45790f5ffb1f8707007ad9f743f42914f58e3e5dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL chClassifier-0.6.1-py2.py3-none-any.whl
Size 6.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
543cc066790fe2068395b5b704ae068adad856695c1ca1e75289a38a69642ec0
BLAKE2b-256 checksum
How to use checksums
2127f305a061dc10a718c8c58aae70bacdd6bf8cbd3cd79f25c7d16f67d7ac0e
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

This release

0.6.1 This release

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