Skip to main content

A fast binary classifier using feature selection of sentence transformer embeddings.

Project description

Dependencies

Tested with:

Installation

From Github

pip3 install git+https://github.com/er1kb/distinction

or clone and install locally:

git clone https://github.com/er1kb/distinction.git && cd distinction && pip3 install .

From PyPI

python3 -m pip install distinction

English

What is it

Examples

Split records

Combine records

Classifier from training_data - raw text

Classifier from training_data - pre-encoded

Tune similarity

Tune selection

Tune with plots

Use optimized criteria from tune()

Prediction pipeline

Swedish

TODO

import distinction as ds
C = ds.Classifier(**kwargs)
[*C.train(training_data = ...)]
predictions = [*C.predict(...)]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

distinction-0.0.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

distinction-0.0.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file distinction-0.0.1.tar.gz.

File metadata

  • Download URL: distinction-0.0.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for distinction-0.0.1.tar.gz
Algorithm Hash digest
SHA256 66bb546dae3bd61e01276a8f205393feaf98a194e8b1ca32823e6d239c5d0016
MD5 32ff456e3daf1b54a38b3bc5f05e711a
BLAKE2b-256 df70667959f4eb9f5984e7bc1e7b613a8f201b0392076666a67bd9fc6f1b9585

See more details on using hashes here.

File details

Details for the file distinction-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: distinction-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.5

File hashes

Hashes for distinction-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3cfdb24f00e914631e36f086f5bdba5346e52fd114c6c92c8f13ea278ab5ba53
MD5 0368b81694ab0e213b9d0090543cf003
BLAKE2b-256 cd382bc1e3fd6441c5829e59f3d1b09dc8a929e4e6d0dd18e03b4baeae937411

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page