KL University Students: Building a Text Analysis Project During a Data Science Internship

KL University Students: Building a Text Analysis Project During a Data Science Internship

Facebook
Twitter
LinkedIn
WhatsApp
Email

Yes, you can build a credible text analysis project in a 14-day internship, provided you keep the scope narrow: one open dataset of customer reviews, one cleaning pipeline, one simple baseline model, and one summary chart you can explain. The plan below walks through that path day by day and ends with a pitfalls checklist on labels, language mix and evaluation.

What a two-week sentiment project should and should not try to do

Sentiment analysis means assigning each piece of text a label such as positive, negative or neutral. For a customer-review project, the input is review text (and often a star rating) and the output is a labelled dataset, a measured model, and a chart that summarises what customers feel.

Fourteen days is short. A realistic scope looks like this:

  • In scope: an openly licensed dataset, cleaning, exploratory counts, a TF-IDF plus logistic regression baseline, honest evaluation, one clear chart, a short write-up.
  • Out of scope: scraping websites (terms-of-service and legal risk), training large neural models from scratch, deploying an app, and claiming the model “understands” Indian languages.

A small project finished and explained well is more useful in an interview than an ambitious one that is half-working. The free two-week online internship at CareerSwami fits this scale, and it offers a free offer letter and a completion certificate after successful completion, but the quality of the project is what you will actually discuss with anyone who reads your work.

Where KL University students should check rules before choosing a project

The only institution document verified for this article is the university’s MBA academic regulations for the 2013-14 admission year. It is old and covers MBA, not B.Tech or data science, so treat it as background and not as your rulebook. Even so, it shows how the university thinks about internships, and that is useful to know.

The regulations define an internship as a full-time stint in an organisation, and the MBA structure lists a 3-month Internship Program worth 9 credits with staged evaluation (initial, interim and final components), with detailed guidelines issued when the internship begins. The document is headed as a KL University, Vaddeswaram, document and names the Academic Council as the highest academic body, which suggests such rules are set university-wide. The practical lesson: a short, self-driven online project is a different thing from a credit-bearing internship. Do not assume it substitutes for any required internship, project or credit. CareerSwami does not offer academic credit.

Nothing verified here covers current B.Tech or M.Tech internship rules, online internships, or your department’s data science syllabus. Those are the things you need to establish yourself.

Verification steps for KL University students planning a text analysis project

  1. Ask your department’s internship or project coordinator in writing whether a voluntary online internship can be listed in your records, and in what form.
  2. Find the regulations document for your own programme and admission year (not the 2013-14 MBA one) and read the internship and project-work clauses.
  3. Ask whether an internship certificate needs to come from a specific type of organisation or carry specific details for submission.
  4. Check with your faculty mentor whether your project could also be reused as a mini-project or course assignment, and whether reuse of the same work is permitted.
  5. Confirm timing: check the current academic calendar so your 14 days do not clash with internal exams or attendance-sensitive periods.
  6. Ask your training and placement or career office how project work is best presented in a resume.

Free 2-Week CareerSwami Internship

Online, 14 days, with a free offer letter and a free completion certificate once you finish the work. Check with your college that it fits your requirement before you enrol.

Apply for the free internship

Choosing a scraping-free dataset for customer review sentiment

Avoid scraping. It raises terms-of-service issues and eats days you do not have. Use datasets that are published for reuse, and read each licence.

Source type What to look for Watch out for
Kaggle datasets Product, restaurant or app reviews with star ratings; a stated licence Unclear licences; datasets that are copies of scraped data
Hugging Face datasets Review corpora with documented fields and splits Very large files; check the dataset card for language and licence
UCI Machine Learning Repository Small, well-documented sentiment sets Older text styles that differ from modern reviews
Government or institutional open data portals Feedback or grievance text with documented terms Personal data; confirm anonymisation

Select a dataset of roughly 10,000 to 100,000 reviews. That is large enough to be meaningful and small enough to process on a laptop or a free notebook environment. Record the name, link, licence and download date in your notes on day one.

A 14-day roadmap for a customer-review sentiment project

Days Focus Output you should have
1 Problem statement, dataset choice, licence check One-paragraph brief and a data-source note
2 Load data, inspect columns, count nulls and duplicates Data audit table
3 Define labels from ratings; look at the class balance Label rule written down
4-5 Text cleaning pipeline Cleaned column plus before/after samples
6 Exploratory analysis: length, common words, rating distribution Two or three plain charts
7 Train/validation/test split; keep the test set untouched Fixed split with a random seed
8-9 Baseline model: TF-IDF plus logistic regression Baseline scores
10 Error analysis: read misclassified reviews List of failure patterns
11 One improvement (n-grams, class weights, or a pretrained model) Comparison table
12 Summary chart Final chart with a clear title and caption
13 Write-up and clean notebook README with method and limits
14 Review, final run from scratch, submit Reproducible notebook

Cleaning review text without destroying the sentiment signal

Cleaning is where many student projects quietly go wrong, because aggressive cleaning removes the very words that carry sentiment. Apply steps one at a time and look at samples after each.

  1. Remove exact duplicates. Repeated reviews inflate scores if copies land in both training and test sets.
  2. Handle missing text. Drop rows with empty review bodies and note how many you dropped.
  3. Lowercase for a bag-of-words baseline.
  4. Strip HTML tags and URLs. These add noise, not meaning.
  5. Normalise whitespace and repeated characters (for example “soooo good” to “soo good”).
  6. Keep negations. Standard stop-word lists often include “not”, “no” and “never”. Removing them turns “not good” into “good”. Customise the list.
  7. Be careful with punctuation and emojis. Exclamation marks and emojis can carry sentiment; consider keeping or converting emojis to text tags.

Keep the raw text column untouched and add a separate cleaned column, so you can always go back.

Illustrative walk-through: turning star ratings into labels and a summary chart

The following is an illustrative sketch, not output from a run. Imagine a dataset of product reviews with a review_text column and a rating column from 1 to 5.

Label rule (decided and written down on day 3): ratings 1-2 become negative, 3 becomes neutral, 4-5 become positive. Many projects drop the neutral class to build a binary classifier; either choice is fine if you state it.

import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report

df = pd.read_csv("reviews.csv")
df = df.drop_duplicates(subset="review_text").dropna(subset=["review_text"])

def to_label(r):
    if r <= 2: return "negative"
    if r == 3: return "neutral"
    return "positive"

df["label"] = df["rating"].apply(to_label)

train, test = train_test_split(
    df, test_size=0.2, random_state=42, stratify=df["label"]
)

vec = TfidfVectorizer(ngram_range=(1, 2), min_df=3)
X_train = vec.fit_transform(train["review_text"])
X_test = vec.transform(test["review_text"])

model = LogisticRegression(max_iter=1000, class_weight="balanced")
model.fit(X_train, train["label"])
print(classification_report(test["label"], model.predict(X_test)))

Notice that the vectoriser is fitted on training data only. Fitting it on the whole dataset leaks information from the test set.

The summary chart. Pick one message. A good option is a horizontal bar chart of the ten words or phrases with the largest positive and negative model coefficients, titled something like “Words most associated with negative and positive reviews”. A second option is a stacked bar of sentiment share by product category, if your dataset has categories. Put the sample size in the caption, label axes in plain words, and avoid decorative 3D effects.

Evaluating a sentiment classifier honestly

Accuracy alone can mislead. If 80% of reviews are positive, a model that always says “positive” scores 80% and tells you nothing.

  • Report precision, recall and F1 per class, plus macro-averaged F1.
  • Show a confusion matrix and say which classes get mixed up (neutral is usually the weakest).
  • Compare against a majority-class baseline so readers see what your model adds.
  • Keep the test set untouched until the final run; tune on validation data.
  • Read at least 30 misclassified reviews and group them: sarcasm, mixed opinions, rating-text mismatch, short texts.

Pitfalls checklist for labels, language mix and evaluation

Area Pitfall What to do instead
Labels Treating star ratings as ground truth when text and rating disagree (“great phone, but 1 star by mistake”) Sample and read 50 rows; note the mismatch rate in your write-up
Labels Treating 3-star reviews as clearly neutral Either drop them with a stated reason or inspect them as a mixed class
Labels Undocumented label rule Write the mapping in the README
Language mix Hinglish or Telugu-English text (“product bahut accha hai”) passed to an English-only tool Detect or flag non-English rows, report their share, and either filter or analyse them separately
Language mix Transliterated words treated as noise and removed Check frequent tokens before deleting anything
Language mix Claiming the model works for Indian languages after testing only English State exactly which languages were tested
Evaluation Duplicates across train and test De-duplicate before splitting
Evaluation Reporting accuracy only on imbalanced classes Report per-class and macro F1
Evaluation Tuning repeatedly on the test set Use a validation split or cross-validation
Evaluation Overstating results (“the model understands sentiment”) Describe what it measured and where it fails

Packaging the project so a reviewer can follow it

Your final deliverable should be readable in five minutes. Include:

  • A README with the problem, dataset name, link and licence, label rule, and how to rerun.
  • A notebook that runs top to bottom without manual edits.
  • A results table comparing the majority baseline, your baseline model and your one improvement.
  • The summary chart with a caption.
  • A short limitations paragraph: language coverage, label noise, domain shift (a model trained on electronics reviews may fail on restaurant reviews).

Be ready to answer three questions aloud: why this dataset, how you defined labels, and what the model gets wrong.

Frequently Asked Questions

Can I finish a sentiment analysis project in 14 days if I am new to NLP?

Yes, if you stick to a baseline such as TF-IDF with logistic regression and an open dataset. The roadmap above allocates time for cleaning, evaluation and writing, which is where most of the learning happens.

Why avoid scraping reviews from e-commerce sites?

Scraping can breach a site’s terms of use, and the data you collect may have unclear rights and personal details. Published open datasets with stated licences are safer and save time.

Should I remove stop words in a sentiment project?

Not blindly. Common lists include negations like “not” and “no”, which flip meaning. Use a customised list or keep stop words and let the model weigh them.

How do I handle reviews written in Hinglish or Telugu-English mix?

Measure how many rows are mixed, then decide whether to filter them out or analyse them as a separate group. Say clearly in your write-up which languages your results apply to.

Is accuracy enough to judge my model?

No. With imbalanced classes, accuracy hides weak performance on minority labels. Report per-class precision, recall, F1 and a confusion matrix, and compare against a majority-class baseline.

Which chart works best for summarising sentiment results?

A horizontal bar chart of top positive and negative terms, or a stacked bar of sentiment share by category, both communicate one clear message. Add the sample size and plain axis labels.

Can a short online project count towards my KL University requirements?

Do not assume so. The verified university document is an older MBA regulation and does not address online internships, so ask your department coordinator in writing how voluntary internships and projects are treated for your programme.

Does the CareerSwami internship give me a ready-made sentiment project?

The internship is free, lasts two weeks online, and offers an offer letter and a certificate on successful completion. It has 26 tracks, so the sentiment project is something you plan and document yourself within the data science work, using the roadmap here.

Related Data Science guides

Ready to put this into practice?

Join the free two-week CareerSwami online internship in Data Science. The internship, the offer letter and the completion certificate are free.

Start your free 2-week internship

Web Stories

Scroll to Top