I hereby claim:
- I am anabranch on github.
- I am billc (https://keybase.io/billc) on keybase.
- I have a public key whose fingerprint is 4766 503D C86D 17E1 0E45 D1AE 44C3 1679 6FBE AC9D
To claim this, I am signing this object:
import argparse | |
import json | |
import re | |
import os | |
from time import time | |
parser = argparse.ArgumentParser(description='Convert to Quiver Format') | |
parser.add_argument("src", help="The Source File You want to Convert") | |
args = parser.parse_args() | |
cells = [] |
from __future__ import division | |
import string | |
import math | |
tokenize = lambda doc: doc.lower().split(" ") | |
document_0 = "China has a strong economy that is growing at a rapid pace. However politically it differs greatly from the US Economy." | |
document_1 = "At last, China seems serious about confronting an endemic problem: domestic violence and corruption." | |
document_2 = "Japan's prime minister, Shinzo Abe, is working towards healing the economic turmoil in his own country for his view on the future of his people." | |
document_3 = "Vladimir Putin is working hard to fix the economy in Russia as the Ruble has tumbled." |
from __future__ import division | |
import string | |
import math | |
tokenize = lambda doc: doc.lower().split(" ") | |
document_0 = "China has a strong economy that is growing at a rapid pace. However politically it differs greatly from the US Economy." | |
document_1 = "At last, China seems serious about confronting an endemic problem: domestic violence and corruption." | |
document_2 = "Japan's prime minister, Shinzo Abe, is working towards healing the economic turmoil in his own country for his view on the future of his people." | |
document_3 = "Vladimir Putin is working hard to fix the economy in Russia as the Ruble has tumbled." |
import os | |
import sys | |
spark_home = os.environ.get('SPARK_HOME', None) | |
# check if it exists | |
if not spark_home: | |
raise ValueError('SPARK_HOME environment variable is not set') | |
# check if it is a directory |
{ | |
"geojson_crime": [ | |
{ | |
"features": [ | |
{ | |
"geometry": { | |
"coordinates": [ | |
-122.415085666416, | |
37.7792390689538 | |
], |
# coding: utf-8 | |
import loader | |
import pickle | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
x = loader.load_xy2() | |
with open('temp.pkl', 'wb') as f: | |
pickle.dump(x, f) | |
from bs4 import BeautifulSoup | |
import re | |
import glob | |
| |
def get_prod(soup): | |
production_companies = [] | |
for row in soup.select("tr"): | |
for th in row.select("th"): | |
if th.text.strip() == "Production\ncompany": |
I hereby claim:
To claim this, I am signing this object: