Skip to main content

Fast Punctuation Restoration for Vietnamese

Project description

🛠️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='mBertPuncCap', 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, mBertPuncCap]
  • no_cuda: Whether to not use CUDA even when it is available or not.

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-2.0.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

VFastPunct-2.0.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: VFastPunct-2.0.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for VFastPunct-2.0.0.tar.gz
Algorithm Hash digest
SHA256 413ec1c6551f7eed4f106153f3a7ad5050a65108cdf3d65fae9381a7cfbedb50
MD5 171f7e4620f944a9c7b1a6d966b3a776
BLAKE2b-256 58b46069a99f8df62228418cdc2b1decb8904fea9bc483c9a78487053817fc7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: VFastPunct-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10

File hashes

Hashes for VFastPunct-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c63f0879afc1aebd3877100341c94a44f542be3fe61342847c53b6f288317e
MD5 97c795310f26f1803e914e8135f60623
BLAKE2b-256 fdb46776a2c6fc4ea3e5deb596021e92d3d641afca85ad73e2fb8bcc54f729b0

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