What Is Programming?
Are you sure that you got it right?
Saturday, October 02, 2021
JavaScript: AJAX Fetch HTML Page (Google Sheet), Display As Collapsible List
Read More
Saturday, September 25, 2021
Thursday, September 23, 2021
How To: Get JSON object from URL
Question:
How To: Get JSON object from URL
Answer:
https://stackoverflow.com/questions/15617512/get-json-object-from-url
Read MoreHow To: Parse JSON into a html table using PHP
.
Question: How can I parse JSON into a html table using PHP?
Answer:
.
Read MoreTuesday, September 21, 2021
Error (Python) ModuleNotFoundError: No module named 'stemmer'
.
Error:
ModuleNotFoundError: No module named 'stemmer'
.
Solution:
Run ...
pip install PyStemmer
.
https://stackoverflow.com/questions/49634536/python-stemmer-not-found
Read MoreDesign your own sentiment analysis tool
.
While there are a lot of tools that will automatically give us a sentiment of a piece of text, we learned that they don't always agree! Let's design our own to see both how these tools work internally, along with how we can test them to see how well they might perform.
.
Read MoreError (Python, Windows) 'wget' is not recognized as an internal or external command
.
‘wget’ is not recognized as an internal or external command – Windows Fix
If you get the following error on windows terminal (CMD / Command Prompt)
‘wget’ is not recognized as an internal or external command,
operable program or batch file.
Or in Git Bash sh: wget: command not found
What this simply means is, wget isn’t installed in your windows machine or it is, but hasn’t been added to Windows environmental path.
If you don’t have wget installed, download it from here (32-bit) and here (64-bit).
Extract the files to a folder say C:\wget and then add the folder to Windows environmental path.
In some windows machines, the wget command will not be available until after a PC restart.
Read MoreBuilding Flutter applications online
.
Build Apps Effortlessly
Building Flutter applications has never been easier.
NEXT STEP:
Read MoreComplete Flutter Tutorial From Start Until Publishing To App Store
.
TUTORIAL:
https://proandroiddev.com/a-new-flutter-app-from-flutter-create-to-the-app-store-e6c2dee17c1a
Read MoreDownload Keystore Maker Software
KeyStore Explorer
KeyStore Explorer is an open source GUI replacement for the Java command-line utilities keytool and jarsigner. KeyStore Explorer presents their functionality, and more, via an intuitive graphical user interface.DOWNLOAD:
https://keystore-explorer.org/index.html
TUTORIAL:
Read MoreMonday, September 20, 2021
Install NRC Lexicon from within Jupyter Notebook
.
1.Upgrade Python version (if needed)
Expected output:
2.Install NRC Lexicon
Expected Output
Note: Even after the installation of NRC Lexicon, MissingCorpusError may occur while running programs. So it is recommended to also install textblob.download_corpora.
3.Install textblob.download_corpora (Recommended)
Expected Output
Thursday, August 05, 2021
Load Dataset Directly into Colab from anywhere on the Browser using CurlWget Extension
.
Introduction
CurlWget Extension
Uploading data on Colab from any Website
Dealing with various file formats in Collaboratory
Save and reuse files without wasting the internet
If files are shared with you on gdrive
.
Read MoreTuesday, April 06, 2021
Text Processing in Python Text using NLTK and spaCy
.
The Internet has connected the world, while Social Media like Facebook, Twitter and Reddit provided the platform for people to express their opinions and feelings toward a topic. Then, the proliferation of smartphones increased the usage of these platforms directly. For instance, there are 96% or 2,240 million Facebook active users who used Facebook by smartphones and tablets [1].
The increment in the usage of Social Media has grown the size of text data, and boost the studies or researches in Natural Language Processing (NLP), for example, Information Retrieval and Sentiment Analysis. Most of the time, the documents or the text files to be analyzed are gigantic and contains a lot of noise, directly used raw texts for analysis is inapplicable. Hence, text processing is essential to provide clean input for modelling and analysis.
Text processing contains two main phases, which are tokenization and normalization [2]. Tokenization is the process of splitting a longer string of text into smaller pieces, or tokens [3]. Normalization referring to convert number to their word equivalent, remove punctuation, convert all text to the same case, remove stopwords, remove noise, lemmatizing and stemming.
Stemming — removing affixes (suffixed, prefixes, infixes, circumfixes), For example, running to run
Lemmatization — capture canonical form based on a word’s lemma. For example, better to good [4]
.
Text Processing with NLTK
0. Import all needed libraries
1. Tokenization
2. Normalization
a. Removing Stop words
b. Lemmatization
3. Obtain the Cleaned Tokens
Text Processing with spaCy
1. Tokenization + Lemmatization
2. Normalization
a. Removing Noise
b. Removing Stopwords
3. Obtain the Cleaned Tokens
FULL:
https://towardsdatascience.com/text-processing-in-python-29e86ea4114c
References:
[1] M. Iqbal, “Facebook Revenue and Usage Statistics (2020),” 8 March 2021. [Online]. Available: https://www.businessofapps.com/data/facebook-statistics/.
[2] M. Mayo, “A General Approach to Preprocessing Text Data,” 2017. [Online]. Available: https://www.kdnuggets.com/2017/12/general-approach-preprocessing-text-data.html. [Accessed 12 June 2020].
[3] D. Subramanian, “Text Mining in Python: Steps and Examples,” 22 August 2019. [Online]. Available: https://medium.com/towards-artificial-intelligence/text-mining-in-python-steps-and-examples-78b3f8fd913b. [Accessed 12 June 2020].
[4] M. Mayo, “Natural Language Processing Key Terms, Explained,” 2017. [Online]. Available: https://www.kdnuggets.com/2017/02/natural-language-processing-key-terms-explained.html.
[5] “Natural Language Processing In Julia (Text Analysis),” JCharisTech, 1 May 2018. [Online]. Available: https://jcharistech.wordpress.com/2018/05/01/natural-language-processing-in-julia-text-analysis/.
[6] D. Jurafsky and J. H. Martin, “Speech and Language Processing,” 3 December 2020. [Online]. Available: https://web.stanford.edu/~jurafsky/slp3/.
[7] M.F. Goh, “Text Normalization with spaCy and NLTK,” 29 November 2020. [Online]. Available: https://towardsdatascience.com/text-normalization-with-spacy-and-nltk-1302ff430119.
Tuesday, January 05, 2021
Sentiment Analysis- Lexicon Models vs Machine Learning
.
Why are we even interested in Sentiment Analysis? Well, here’s situation to help you understand.
.
https://medium.com/nerd-for-tech/sentiment-analysis-lexicon-models-vs-machine-learning-b6e3af8fe746
Read More