Metadata-Version: 2.1
Name: textcaret
Version: 0.0.1
Summary: Simplified NLP Toolkit for unifying common Natural Language Processing Tasks
Home-page: https://github.com/jcharistech/textcaret
License: MIT
Keywords: textcaret,tidytext,jcharistech,pycaret,NLP,text preprocessing,text vizualization,text summarization,sweetviz,pandas,sumy,normalize,textblob
Author: Jesse E.Agbe(JCharis)
Author-email: jcharistech@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: matplotlib (>=3.4.2,<4.0.0)
Requires-Dist: neattext (>=0.1.0,<0.2.0)
Requires-Dist: nltk (>=3.6.2,<4.0.0)
Requires-Dist: spacy (>=3.1.1,<4.0.0)
Requires-Dist: sumy (>=0.8.1,<0.9.0)
Requires-Dist: textblob (>=0.15.3,<0.16.0)
Requires-Dist: textstat (>=0.7.1,<0.8.0)
Requires-Dist: wordcloud (>=1.8.1,<2.0.0)
Project-URL: Repository, https://github.com/jcharistech/textcaret
Description-Content-Type: text/markdown

# textcaret
Simplified NLP Toolkit for common NLP Tasks. Unifying common Natural Language Processing task


#### Why TextCaret
+ The problem: performing common NLP Task such as summarization,sentiment analysis,etc are essential however you may need to use different libraries and write different codes for performing the same set of task on different texts
+ The goal of TextCaret is to simplify this task by providing a unified framework to 
perform these common NLP Tasks




#### Installation
textcaret is available on pypi hence you can install using pip
```bash
pip install textcaret
```

#### Benefits and Features
+ Generate Reports for Text Analysis
+ Text Summarization
+ Text Visualization
	- wordcloud
	- word frequency plots
	- word length distribution
	- etc
+ Sentiment Analysis
+ Text Generation *
+ etc


#### Usage
```python
>>> import textcaret as tc 
>>> docx = tc.TextCaret(text='your text goes here')
>>>
>>> docx.visual_report()
>>> docx.summary_report()
>>> docx.sentiment_report()
>>> docx.general_report()
```

#### Perform Text Visualization For Insights
+ This generates wordcloud plots,token and tags frequency plots, word length distribution and more.
```python
>>> from textcaret import TextViz
>>> s = "your text"
>>> viz = TextViz(s)
>>> viz.visualize()
>>> # Save Plot
>>> viz.safe_figure('mynewplot.png')
```

#### Perform TextSummarization
+ In NLP Text Summarization is the process of shortening a set of data computationally, to create a subset (a summary) that represents the most important or relevant information within the original content.[wiki]
+ It is the process of finding the most informative sentence in a document.
+ TextCaret uses several extractive algorithms for generating summary

```python
>>> from textcaret import TextSummarizer
>>> s = "your text"
>>> summarizer = TextSummarizer(s)
>>> summarizer.summarize()
```

#### Perform Sentiment Analysis
+ In NLP, Sentiment Analysis is the process of identifying the emotions/sentiment or feeling in a given text either as positive,negative or neutral.
+ It is a form of text classification
+ TextCaret uses the famous textblob library behind the scene to generate sentiments of given text

```python
>>> from textcaret import TextSentiment
>>> docx = TextSentiment("I love coding and teaching.John hates mangoes so bad he doesn't eat it")
>>> 
>>> docx.sentiment()
{'sentence': "I love coding and teaching.John hates mangoes so bad he doesn't eat it", 'sentiment': Sentiment(polarity=-0.09999999999999992, subjectivity=0.6333333333333333)}
>>> 
>>> docx.sentiment()['sentiment']
Sentiment(polarity=-0.09999999999999992, subjectivity=0.6333333333333333)
>>> 
>>> docx.sentiment()['sentiment'].polarity
-0.09999999999999992
>>> 
>>> docx.sentiment()['sentiment'].subjectivity
0.6333333333333333
>>> 
```

####  Perform Sentiment on Splitted/Tokenized Sentences
```python
>>> docx.split_sentence=True
>>> 
>>> docx.sentiment()
{'sentiment': [('I love coding and teaching', 0.5), ("John hates mangoes so bad he doesn't eat it", -0.6999999999999998)]}
>>> 

```


#### Dependencies
Textcaret is built ontop of powerful and common NLP libraries such as below
+ NLTK
+ TextBlob
+ Sumy
+ Neattext
+ Matplotlib
+ Wordcloud
+ Spacy

#### .
+ Maintainer: Jesse E.Agbe(JCharis)
+ Jesus Saves @JCharisTech

#### Contributions
+ Notice a bug, please let us know
+ We appreciate contributions of anykind.
+ Happy Coding!!! :smiley:








