pip install --upgrade fastpunct
english
from fastpunct import FastPunct
# The default language is 'english'
fastpunct = FastPunct()
fastpunct.punct([
"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)
fastpunct.punct([
'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.']
Version | Tag | Published |
---|---|---|
2.0.2 | 2yrs ago | |
2.0.1 | 2yrs ago | |
1.0.3 | 2yrs ago | |
1.0.2 | 3yrs ago |