Skip to main content

Fast Punctuation Restoration for Vietnamese

Project description

🛠️VFastPunct

Code by Trong-Dat Ngo.

Fast Punctuation Restoration using Transformer Models for Vietnamese

Installation

This repository is tested on Python 3.7+ and PyTorch 1.11.0+, as well as it works fine on macOS, Windows, Linux.

pip install VFastPunct

Run

>>> from vfastpunct import VFastPunct
>>> punct = VFastPunct('mBertLstmCrf', 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.'

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

VFastPunct-1.0.3.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

VFastPunct-1.0.3-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file VFastPunct-1.0.3.tar.gz.

File metadata

  • Download URL: VFastPunct-1.0.3.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for VFastPunct-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ea5d22184ec0f34d2276bc07544d8037ed85808ac9035c7d6d1480cd87f65b72
MD5 5ae6d69c8ae40c277c7af8e6326f5db7
BLAKE2b-256 87426334ee9ec2119a7d4f5f8bbe79f6f0a76d466d910dcc2fdf1be702be0be9

See more details on using hashes here.

File details

Details for the file VFastPunct-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: VFastPunct-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for VFastPunct-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76ce36ada4ad2478dc14e1cc6319aee3b373f919b8d498d5b2de38a2fb78ad03
MD5 c34a83518c2713ab26901c4e2337f760
BLAKE2b-256 89264c8aa5a505bbd45b99e2dde1f896f4553e7f36fa51c234f9f635227dcc2c

See more details on using hashes here.

Supported by

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