Skip to main content

Lingorithm Text Classification

This package is the core function for any NLP operation or pacakge used by lingorithm.

Installation

Use the package manager pip to install ltck.

pip install ltck

Usage

Data

Input data is a list of tuples

data = [
    ("Help me please", "commonQ.assist"),
    ("Is this a bot?", "commonQ.bot"),
    ("Is there a bot chatting to me?", "commonQ.bot")
]
import ltck

tc = ltck('en', data) 

tc.train(epochs=20, batch_size=8, model_name="commonQ_v1")


classified = tc.classify("Help me please")

print(classified)
# [('commonQ.assist', 0.9737932),
#  ('commonQ.not_giving', 0.012769885),
#  ('commonQ.name', 0.0071987235),
#  ('commonQ.how', 0.002869619),
#  ('commonQ.query', 0.0023981368),
#  ('commonQ.bot', 0.000478917),
#  ('faq.bad_service', 0.0003706195),
#  ('faq.aadhaar_missing', 5.4887507e-05),
#  ('faq.apply_register', 3.3203887e-05),
#  ('commonQ.just_details', 1.60179e-05),
#  ('faq.biz_new', 9.965993e-06),
#  ('faq.application_process', 3.101246e-06),
#  ('faq.borrow_limit', 1.6019511e-06),
#  ('faq.borrow_use', 1.4953373e-06),
#  ('commonQ.wait', 2.9794015e-07),
#  ('faq.biz_simpler', 2.6959242e-07),
#  ('contact.contact', 9.587218e-08),
#  ('faq.biz_category_missing', 5.7328425e-08),
#  ('faq.approval_time', 5.5687766e-09),
#  ('faq.banking_option_missing', 1.6084242e-09),
#  ('faq.address_proof', 1.3430994e-09)]

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for ltck 0.1.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 ltck 0.1.1
File Size Uploaded Provenance
ltck-0.1.1.tar.gz 2.4 kB Without provenance Details

Release files / ltck-0.1.1.tar.gz

Download URL ltck-0.1.1.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b7ea536f65a06f3779c0c4dfeeaf19bbaceb0044d61b7dfe4e153c69c374d273
BLAKE2b-256 checksum
How to use checksums
ed40e433e9e9d291a5e6d035e248394293065f1a675c407de75a9a7c6d7bd029
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Security for ltck 0.1.1

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file 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