Skip to content

Instantly share code, notes, and snippets.

View phamthuonghai's full-sized avatar

Thuong-Hai Pham phamthuonghai

  • ÚFAL @ufal
  • Prague, Czech Republic
View GitHub Profile
@phamthuonghai
phamthuonghai / spark_raptor.py
Created August 18, 2016 04:08
Our very first version of Raptor using Spark
"""
spark-submit pyraptor.py -p "./" -o temp_BYS.csv -a BYS -c sg
"""
import string
from math import sqrt
from optparse import OptionParser
from operator import itemgetter
from pyspark import SparkConf, SparkContext