Skip to main content

Punctuation restoration and spell correction.

Project description

fastPunct : Punctuation restoration and spell correction experiments.



pip install --upgrade fastpunct

Supported languages:



from fastpunct import FastPunct
# The default language is 'english'
fastpunct = FastPunct()
                "john smiths dog is creating a ruccus",
                "ys jagan is the chief minister of andhra pradesh",
                 "we visted new york last year in may"

# ["John Smith's dog is creating a ruccus.",
# 'Ys Jagan is the chief minister of Andhra Pradesh.',
# 'We visted New York last year in May.']

# punctuation correction with optional spell correction (experimental)
fastpunct.punct([], correct=True)

                  'johns son peter is marring estella in jun',
                   'kamal hassan is a gud actr'], correct=True)

# ["John's son Peter is marrying Estella in June.",
# 'Kamal Hassan is a good actor.']

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

fastpunct-2.0.2.tar.gz (4.2 kB view hashes)

Uploaded source

Built Distribution

fastpunct-2.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page