Skip to content

CittiTheBozo/PyTextProMax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTextProMax

A simple but useful python library.

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.

About

A python library that can help categorize sentences.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages