Metadata-Version: 2.1
Name: nlppreprocess
Version: 0.1.1
Summary: This package contains preprocessing functions
Home-page: https://github.com/gaganmanku96/nlppreprocess
Author: Gagandeep Singh
Author-email: gaganmanku96@gmail.com
License: License :: OSI Approved :: MIT License
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown

# NLPPREPROCESS

NLPPREPROCESS is a preprocessing package for NLP task. The main objective of the package is to reduce time consumed for preprocessing by using ready made functions.

# Requirements

 * Python 3.4 or higher

# Installation

 ### Using PIP via PyPI
 ```
 $ pip install nlppreprocess
 ```

 ### Manually via GIT
 ```
 $ git clone git://github.com/gaganmanku96/nlppreprocess
 $ cd nlppreprocess
 $ python setup.py install
 ```

# Functionalities
1. Replaces words
2. Remove stopwords
3. Remove numbers
4. Remove HTML tags
5. Remove punctations

# Usage
```
>>> from nlpuitls import NLP
>>> obj = NLP()
```
 ## Parameters
 ```
 >>> obj = NLP(
        replace_words=True,
        remove_stopwords=True,
        remove_numbers=True,
        remove_HTML_tags=True,
        remove_punctation=True
        )
 ```
 ## Using with Pandas Library
 ```
 >>> dataFrame['text'] = dataFrame['text].apply(obj.process)

 ```
 ## Using with plain textx
 ```
 >>> print(obj.process("Pass a text here"))
 ```
 ## Add more stopwords
 ```
 >>> obj = NLP()
 >>> obj.add_stopword(['this', 'and this'])
 ```
 ## Add more replace words
 ```
 >>> obj = NLP()
 >>> obj.add_replacement([this="by this", this="by this"])
 ```




