# No Code Text Classifier Tool
This tool will help you to perform training, evaluation & prediction of Text Classification task without knowing any kind of code. You have to define the dataset directory and create your model and perform predictions without any issue. In the backend, this will automatically perform text preprocessing, model training etc. You can also perform hyperparameter techniques to get the best model through experiments. Let's get started.
Install the pakage
```python
pip install NoCodeTextClassifier
```
### Training the Text Classification
Define the datapath
```python
data_path = "dataset.csv"
```
Clean the Text dataset and transform the label into number
```python
# It will take datapath, text feature and target feature
process = process(data_path,'email','class')
df = process.processing()
print(df.head())
```
Convert the text feature into numerical vector. You can apply multiple vectorization such as TfIdfVectorizer, CountVectorizer.
```python
Vectorization = Vectorization(df,'clean_text')
TfidfVectorizer = Vectorization.TfidfVectorizer(max_features= 10000)
print(TfidfVectorizer.toarray())
```
Split the dataset into training and testing
```python
X_train, X_test, y_train, y_test = process.split_data(TfidfVectorizer.toarray(), df['labeled_target'])
print(X_train.shape, X_test.shape, y_train.shape, y_test.shape)
```
Perform training with various models such as Naive Bayers, Decision Tree, Logistic Regression, and others. After training, you will see the evalution of the trained model.
```python
models = Models(X_train=X_train,X_test = X_test, y_train = y_train, y_test = y_test)
models.DecisionTree()
```
### For Inferencing with text data
For prediction of the text data with the trained model, try this.
```python
text = input("Enter your text:\n")
inference.prediction(text)
```
Author:
**Md Abdullah Al Hasib**
### **Thank YOU**
Raw data
{
"_id": null,
"home_page": "https://github.com/Al-Hasib/NoCodeTextClassifier",
"name": "NoCodeTextClassifier",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "abdullah",
"author_email": "alhasib.iu.cse@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/36/b8/35be48eca5165d83028d6ed2dc4f47597684a2135aeb1eb3cf95a9a18aac/nocodetextclassifier-0.0.5.tar.gz",
"platform": null,
"description": "# No Code Text Classifier Tool\r\n\r\nThis tool will help you to perform training, evaluation & prediction of Text Classification task without knowing any kind of code. You have to define the dataset directory and create your model and perform predictions without any issue. In the backend, this will automatically perform text preprocessing, model training etc. You can also perform hyperparameter techniques to get the best model through experiments. Let's get started.\r\n\r\nInstall the pakage\r\n```python\r\npip install NoCodeTextClassifier\r\n```\r\n\r\n### Training the Text Classification\r\n\r\nDefine the datapath\r\n```python\r\ndata_path = \"dataset.csv\"\r\n```\r\nClean the Text dataset and transform the label into number\r\n```python\r\n# It will take datapath, text feature and target feature\r\nprocess = process(data_path,'email','class')\r\ndf = process.processing()\r\nprint(df.head())\r\n```\r\nConvert the text feature into numerical vector. You can apply multiple vectorization such as TfIdfVectorizer, CountVectorizer.\r\n```python\r\nVectorization = Vectorization(df,'clean_text')\r\nTfidfVectorizer = Vectorization.TfidfVectorizer(max_features= 10000)\r\nprint(TfidfVectorizer.toarray())\r\n```\r\nSplit the dataset into training and testing\r\n```python\r\nX_train, X_test, y_train, y_test = process.split_data(TfidfVectorizer.toarray(), df['labeled_target'])\r\nprint(X_train.shape, X_test.shape, y_train.shape, y_test.shape)\r\n```\r\nPerform training with various models such as Naive Bayers, Decision Tree, Logistic Regression, and others. After training, you will see the evalution of the trained model.\r\n```python\r\nmodels = Models(X_train=X_train,X_test = X_test, y_train = y_train, y_test = y_test)\r\nmodels.DecisionTree()\r\n```\r\n\r\n### For Inferencing with text data\r\n\r\nFor prediction of the text data with the trained model, try this.\r\n```python\r\ntext = input(\"Enter your text:\\n\")\r\ninference.prediction(text)\r\n```\r\n\r\n\r\nAuthor:\r\n\r\n**Md Abdullah Al Hasib**\r\n\r\n### **Thank YOU**\r\n",
"bugtrack_url": null,
"license": null,
"summary": "This package is for Text Classification of NLP Task",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/Al-Hasib/NoCodeTextClassifier"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36b835be48eca5165d83028d6ed2dc4f47597684a2135aeb1eb3cf95a9a18aac",
"md5": "c5ca5c7e30072c0920636e9153cef161",
"sha256": "79743035872bcd202b949078a665941ea14f1b992f4a682c0f60c37b37e48c61"
},
"downloads": -1,
"filename": "nocodetextclassifier-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "c5ca5c7e30072c0920636e9153cef161",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6859,
"upload_time": "2024-08-22T09:23:27",
"upload_time_iso_8601": "2024-08-22T09:23:27.503208Z",
"url": "https://files.pythonhosted.org/packages/36/b8/35be48eca5165d83028d6ed2dc4f47597684a2135aeb1eb3cf95a9a18aac/nocodetextclassifier-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-22 09:23:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Al-Hasib",
"github_project": "NoCodeTextClassifier",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "nocodetextclassifier"
}