Conversation
Early Insight from Textual Data The file covers -how to open file and show certain amount of data as per count given. -an overview -Length of speeches -Check for missing data -plot representation like bar, hist,box -Pre-processing pipeline -how to remove stop words -Using Count -stats -Wordcloud Using the data set with below details Speeches from the UN general assembly 1970 to 2016 Available from Kaggle.com (free) Medium size: 7 columns, 7507 long speeches Columns: Session, year, country, country_name, speaker, position, text
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Early Insight from Textual Data
This document appears to be a guide or tutorial on exploring and analyzing textual data, likely focusing on speeches or transcripts. Here's a breakdown of the potential content within 500 words:
Accessing and Sampling Data (100 words)
The guide likely covers how to open a text file containing the speeches using Python libraries like open() or pandas' read_csv() function.
It might explain how to display a specific number of lines (count) from the file for initial inspection.
First up, we need to access the data file. Techniques vary depending on the format (CSV, text, etc.). Once open, we can choose to display a limited amount using "count" to get a feel for the data's structure without drowning in information
Next, we gain a high-level understanding. This might involve identifying the types of text (articles, emails, speeches) and getting a sense of the overall volume.
For speech-like data, it's valuable to examine their length. We could find the average speech, identify the shortest and longest, or explore the distribution of lengths.
Real-world data often has missing information. Here, we'll check for these gaps and develop strategies. This might involve removing entries with missing data, imputing values based on statistics, or flagging them for further investigation.
Data comes alive with visuals! Tools like bar charts, histograms, and box plots bring the data to life. Bar charts can showcase word or topic frequency. Histograms depict the distribution of speech lengths or other numerical features. Box plots reveal the median, spread, and potential outliers within the data.
Before diving deeper, we'll establish a pre-processing pipeline. This pipeline prepares the data for further analysis by cleaning and transforming it.
Using the data set with below details
Speeches from the UN general assembly 1970 to 2016 Available from Kaggle.com (free)
Medium size: 7 columns, 7507 long speeches
Columns: Session, year, country, country_name, speaker, position, text