Skip to content

Instantly share code, notes, and snippets.

View jirvingphd's full-sized avatar

James M. Irving, Ph.D. jirvingphd

View GitHub Profile

Title that recommends an action

Subtitle describing the analysis

Authors: Student1, Student2, Student3

The contents of this repository detail an analysis of the module one project. This analysis is detailed in hopes of making the work accessible and replicable.

Business problem:

@jirvingphd
jirvingphd / load_glove_embeddings.py
Last active September 22, 2019 17:40
load_glove_embeddings
# coding: utf-8
import numpy as np
def load_glove_embeddings(fp, embedding_dim, encoding=None, include_empty_char=True):
"""
Loads pre-trained word embeddings (GloVe embeddings)
Inputs: - fp: filepath of pre-trained glove embeddings
- embedding_dim: dimension of each vector embedding
@jirvingphd
jirvingphd / structure-of-tweepy-status-object.json
Created June 2, 2019 20:11
the structure of the Status object of Tweepy
/* json.dumps(StatusObject._json) */
{
"created_at": "Thu Jul 28 00:08:39 +0000 2016",
"in_reply_to_status_id": null,
"id_str": "758454081656467456",
"retweeted": false,
"entities": {
"hashtags": [
{
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.