Skip to main content

deepcorrect

Pre-trained models for punctuation correction (trained on google news, wikipedia and tatoeba) are available at https://drive.google.com/open?id=1Yd8cJaqfQkrJMbRVWIWtuyo4obTDYu-e

Demo of the punctuation model trained on google news corpus is available at http://bpraneeth.com/projects

This repo uses a seq2seq model written by me in keras with tensorflow backend. The multi-purpose seq2seq model can be found at https://github.com/bedapudi6788/txt2txt/

Usage:

from deepcorrect import DeepCorrect
corrector = DeepCorrect('params_path', 'checkpoint_path')
corrector.correct('hey')
'Hey!'

Installation:

pip install deepcorrect

Points to Note:

Max input and output lengths are 200

Segment text into sentences using https://github.com/bedapudi6788/deepsegment and run punctuation correction on each sentence seperately.

Release files for deepcorrect 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepcorrect 1.0.5
File Size Uploaded
deepcorrect-1.0.5.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepcorrect 1.0.5
File Interpreter ABI Platform
deepcorrect-1.0.5-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size:17.8 kB

Release files / deepcorrect-1.0.5.tar.gz

Download URL deepcorrect-1.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0acea8565ec56de41b2eaa3f093d6b95590ff21c9b7fdae8a597358d3580c787
BLAKE2b-256 checksum
How to use checksums
3a14ced14daa245ffaa51ffb37146550fdbb509d2e867e2e0ff9b7da22322f25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.8

Release files / deepcorrect-1.0.5-py2.py3-none-any.whl

Download URL deepcorrect-1.0.5-py2.py3-none-any.whl
Size 14.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7408c19c133d02c98a5d287564693223ff3b339f5f606d8893ee65d16c6a178f
BLAKE2b-256 checksum
How to use checksums
1725e131f4ee1b2c2077613d5d764bfc88d0e0330523746a0aafb21ed712f06d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.8

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page