Skip to main content

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

pip install NoCodeTextClassifier

Training the Text Classification

Define the datapath

data_path = "dataset.csv"

Clean the Text dataset and transform the label into number

# 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.

Vectorization = Vectorization(df,'clean_text')
TfidfVectorizer = Vectorization.TfidfVectorizer(max_features= 10000)
print(TfidfVectorizer.toarray())

Split the dataset into training and testing

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.

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.

text = input("Enter your text:\n")
inference.prediction(text)

Author:

Md Abdullah Al Hasib

Thank YOU

Metadata

Release files for NoCodeTextClassifier 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for NoCodeTextClassifier 0.0.5
File Size Uploaded
nocodetextclassifier-0.0.5.tar.gz 6.9 kB Details

Release files / nocodetextclassifier-0.0.5.tar.gz

Download URL nocodetextclassifier-0.0.5.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
79743035872bcd202b949078a665941ea14f1b992f4a682c0f60c37b37e48c61
BLAKE2b-256 checksum
How to use checksums
36b835be48eca5165d83028d6ed2dc4f47597684a2135aeb1eb3cf95a9a18aac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page