Skip to content

Instantly share code, notes, and snippets.

View CateGitau's full-sized avatar
🏠
Working from home

Cathy CateGitau

🏠
Working from home
View GitHub Profile
@CateGitau
CateGitau / Logistic_Reg_from_Scratch.ipynb
Last active May 24, 2023 03:00
Logistic Regression from scratch
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / Bigrams.r
Created January 28, 2018 18:03
Bigrams
###########################################################################################################
#get the bigrams in queries and getting the frequency / create wordcloud
###########################################################################################################
#text cleaning
#import data
queries <- read.csv("texts.csv")
library(tm)
library(stringr)
@CateGitau
CateGitau / NER.r
Created January 28, 2018 16:47
Named Entity Recognition
options(java.parameters = "- Xmx1024m")
#load libraries
library(openxlsx)
library(rJava)
library(NLP)
library(openNLP)
library(RWeka)
#read text
text <- c("My name is Catherine Gitau, I work at Ongair Limited in Nairobi, Kenya")
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:48
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:48
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:47
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:47
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:47
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:47
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CateGitau
CateGitau / NLP.ipynb
Created November 24, 2017 11:47
Sentiment Analysis using Naive Bayes Classifier
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.