Skip to content

Commit

Permalink
Remove hard coded spark params
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorn committed Sep 16, 2015
1 parent 85fcc78 commit 33dae7d
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ class Word2VecCorpus(pathToReadableWiki:String, redirectStore:RedirectStore, pat
object Word2VecCorpus{

def main(args:Array[String]): Unit ={
val pathToReadableWikipedia = "file://" + args(0)
val pathToReadableWikipedia = args(0)
val pathToRedirects = args(1)
val pathToOutput = "file://" + args(2)
val pathToOutput = args(2)
val language = try { args(3) }catch{
case _ => {
println("Warning: Stemming is deactivated..")
Expand All @@ -160,10 +160,7 @@ object Word2VecCorpus{
println("Path to Wikipedia Redirects: " + pathToRedirects)
println("Path to Output Corpus : " + pathToOutput)

val conf = new SparkConf()
.setMaster("local[8]")
.setAppName("Wiki2Vec corpus creator")
.set("spark.executor.memory", "11G")
val conf = new SparkConf().setAppName("Wiki2Vec corpus creator")

implicit val sc: SparkContext = new SparkContext(conf)

Expand Down

0 comments on commit 33dae7d

Please sign in to comment.