seqtolang
seqtolang is a python library for multi-langauge documents identification.
See this post for implementation details.
Getting Started
Install from source:
$ git clone https://github.com/hiredscorelabs/seqtolang
$ cd seqtolang
$ python setup.py install
or using PyPi:
$ pip install seqtolang
Basic usage:
from seqtolang import Detector
detector = Detector()
text = "In Chinese, the French phrase 'Je rentre chez moi Je rentre chez moi' will be '我正在回家'"
languages = detector.detect(text)
print(languages)
>>> [('fr', 0.499), ('en', 0.437), ('zh', 0.062)]
tokens = detector.detect(text, aggregated=False)
print(tokens)
>>> ['eng', 'eng', 'eng', 'eng', 'eng', 'fra', 'fra', 'fra', 'fra', 'fra', 'fra', 'fra', 'fra', 'eng', 'eng', 'zho']
seqtolang support 36 languages:
['afr', 'eus', 'bel', 'ben', 'bul', 'cat', 'zho', 'ces', 'dan', 'nld', 'eng', 'est', 'fin', 'fra',
'glg', 'deu', 'ell', 'hin', 'hun', 'isl', 'ind', 'gle', 'ita', 'jpn', 'kor', 'lat', 'lit', 'pol',
'por', 'ron', 'rus', 'slk', 'spa', 'swe', 'ukr', 'vie']
Support
Getting Help
You can ask questions and join the development discussion on Github Issues
License
Apache License 2.0
Metadata
Release files for seqtolang 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| seqtolang-0.1.4.tar.gz | 4.5 kB | Without provenance | Details for seqtolang-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| seqtolang-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for seqtolang-0.1.4-py3-none-any.whl |
Total release size: 29.0 MB
Release files / seqtolang-0.1.4.tar.gz
| Download URL | seqtolang-0.1.4.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd64c69883b2eaeb079221dae11ce4c6092511eee55f9633014d735a799a24df
|
|
BLAKE2b-256 checksum How to use checksums |
d276f590e45a36ba3b348eaf3e493055c549ce3cea05c2177d65025251fbad6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / seqtolang-0.1.4-py3-none-any.whl
| Download URL | seqtolang-0.1.4-py3-none-any.whl |
|---|---|
| Size | 29.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e1fc4a57356460d4d23c581373d7ff40ad5354cedf0d2eb0ad5a9d5956ef426
|
|
BLAKE2b-256 checksum How to use checksums |
1b4cae1a25dff2b06476b9c707642adea530ef45994a9986b9035d7418e980b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Security for seqtolang 0.1.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.