Skip to main content

A simple but useful python library.

Project description

PyTextProMax

A simple but useful python library.

POEWERED BY CITTIDABOZO
Latest release => 1.0.0

PyTextProMax is a library that can help in automating the hardest task of all,
getting the actual meaning of a sentence.

Features

  • Get the emotion of a sentence
  • Get the keywords of said sentence
  • Get the named entities in said sentence

And of course PyTextProMax itself is open source with a public repository on GitHub.

Installation

PyTextProMax requires python 3.11 to run.

Use the following command to install it:

pip install PyTextProMax

Development

Want to contribute in the project or come up with ideas? Add me on discord using my discord id “964421984844939285”.

Building for source

Use the following command to download the PyTextProMax source.

git clone https://github.com/CittiTheBozo/PyTextProMax.git

Usage

from PyTextProMax import *

text = "The Apple Inc. is planning on opening a new store in San Francisco." PyTextProMax = PyTextProMax() emotion = PyTextProMax.get_emotion(text) listofkeywords = PyTextProMax.extract_keywords(text) listofentities = PyTextProMax.get_entities(text)

print(f'\nBase sentence: '{text}<span class="hljs-string">'') print(f' Emotion: {emotion}.') print(f' Keywords: {listofkeywords}.') print(f' Named entities: {listofentities}.')

Output should be :

Base sentence: 'The Apple Inc. is planning on opening a new store in San Francisco.'
 Emotion: Neutral \ Unrecognized.
  Keywords: ['apple', 'planning', 'opening', 'new', 'store', 'san', 'francisco'].
   Named entities: ['The Apple Inc.', 'San Francisco'].
You can use it any way you want, this is just an example of how you should use it.

Project details


Release history Release notifications | RSS feed

This version

2.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyTextProMax-2.5.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

PyTextProMax-2.5-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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