PyTextProMax is a library that can help in automating the hardest task of all,
getting the actual meaning of a sentence.
- 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.
PyTextProMax requires python 3.11 to run.
Use the following command to install it:
pip install PyTextProMax
Want to contribute in the project or come up with ideas? Add me on discord using my discord id “964421984844939285”.
Use the following command to download the PyTextProMax source.
git clone https://github.com/CittiTheBozo/PyTextProMax.git
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}.')
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'].