A complete NLP guideline covering all the main steps required to approach any NLP project. The pipeline include EDA, data cleaning, modeling, results interpretation. The data is taken from a Kaggle competition named Real or Not? NLP with Disaster Tweets where the goal to predict if a tweet is about any disasterous situation or not. This data is selected as it contains different type of variables like text, categorical, geographical etc. The EDA contains various visualizations and since github do not display all of these plots, so these plot are being displayed using the saved images for the display purposes. The original plots and maps are interactive.
- Install all dependencies
- Download data
- Download GloVe vectors
- Initial EDA with pandas-profiling
- Target variable distribution visualization
- Categorical variable(s) distribution
- Word clouds for train, test dataset
- Visualize text data in 2D using glove and tfidf
- Check embeddings coverage for our corpus
- Interactive plots for geo-graphical features
- N-gram plots
- Spell correction
- Extracting meta features e.g. num of words, num of punctuations, num of numerals per class
- Extracting readability features e.g. Fog Scale, Flesch Reading Ease, Flesch-Kincaid Grade Level etc
- Sentiment analysis using Allen-NLP
- Modeling using FastText classifier
- Threshold search for improved results
- Model results explainability with LIME
- Data is taken from Real or Not? NLP with Disaster Tweets Kaggle competition. Download data here.
- Download 300d GloVe embeddings here.