Skip to main content

paraphrase_googletranslate

Project description

paraphrase_googletranslate

PyPI - package version PyPI - license PyPI - python version PyPI - downloads

GitHub - last commit GitHub - commit activity

GitHub - code size in bytes GitHub - repo size GitHub - lines of code

GitHub - license

Description

Paraphrasing via google translate

Install

pip install paraphrase_googletranslate
# or
pip3 install paraphrase_googletranslate

Usage

from paraphrase_googletranslate import Paraphraser

original = 'Canvas Print Art size:12inchx12inch(30cmx30cm)x2panels Framed Ready to Hang. Brand: Amoy Art. Canvas print is already perfectly stretched over wooden frame and also hooks have been mounted on each panel,which easily to hang out of box.A perfect wall decorations paintings for living room, bedroom, kitchen, office, Hotel, dining room, office, bathroom, bar etc. HD pictures photo printed on canvas with vivid color on high quality canvas,A perfect gift for your relatives and friends. Packed in Carton Box.100% satisfied guarantee. Shop with confidence!'

phraser = Paraphraser()

rephrased = phraser.paraphrase(original, secondary_language='es')
print(rephrased)
rephrased = phraser.paraphrase(rephrased, secondary_language='de')
print(rephrased)
rephrased = phraser.paraphrase(rephrased, secondary_language='fr')

print('\n\n\n')

print(original)
print(rephrased)

Dependencies

google-trans-new

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

paraphrase_googletranslate-0.0.7.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

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