🛠️VFastPunct
Code by 🧑💻Trong-Dat Ngo.
Fast punctuation and capitalization restoration using Transformer Models for 🇻🇳Vietnamese
Installation
This repository is tested on 🐍Python 3.7+ and 🔥PyTorch 1.8.2+, as well as it works fine on macOS, Windows, Linux.
pip install VFastPunct
Run
>>> from vfastpunct import VFastPunct
>>> punct = VFastPunct(model_name='mBertPunctCap', no_cuda=False)
>>> punct('việt nam quốc hiệu chính thức là cộng hòa xã hội chủ nghĩa việt nam là một quốc gia nằm ở cực đông của bán đảo đông dương thuộc khu vực đông nam á giáp với lào campuchia trung quốc biển đông và vịnh thái lan')
'Việt Nam quốc hiệu chính thức là Cộng hòa Xã hội chủ nghĩa Việt Nam, là một quốc gia nằm ở cực Đông của bán đảo Đông Dương, thuộc khu vực Đông Nam Á, giáp với Lào, Campuchia, Trung Quốc, Biển Đông và Vịnh Thái Lan.'
Arguments:
- model_name: The name of the architectural model that was utilized to restore punctuation and capitalization. Valid model name can be [
mBertPunct,mBertPunctCap]- no_cuda: Whether to not use CUDA even when it is available or not.
Metadata
Release files for VFastPunct 2.0.2
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 |
|---|---|---|---|---|
| VFastPunct-2.0.2.tar.gz | 8.9 kB | Without provenance | Details for VFastPunct-2.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| VFastPunct-2.0.2-py3-none-any.whl | Python 3 | none | any | Details for VFastPunct-2.0.2-py3-none-any.whl |
Total release size: 22.7 kB
Release files / VFastPunct-2.0.2.tar.gz
| Download URL | VFastPunct-2.0.2.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c538af5e02690bde6bfc43fc17280520b1cf59b4fd1912cd7f72a5a7b75a97f5
|
|
BLAKE2b-256 checksum How to use checksums |
e3e95ab3407bf370ea04dc418a385a6a7cd179c5d2a7ba9e800071605f2f4aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10
|
Release files / VFastPunct-2.0.2-py3-none-any.whl
| Download URL | VFastPunct-2.0.2-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03315aefa04dc25d4f8d986d12910082535ad11e954681382590f5aac07b7601
|
|
BLAKE2b-256 checksum How to use checksums |
6811ae9a613145fb300948d33cc8cf0eabb7f5ba7c5da574c55ec3cd9ac3a896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.26.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.8.10
|
Security for VFastPunct 2.0.2
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.