We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adf2f43 commit 6e4a8bfCopy full SHA for 6e4a8bf
1 file changed
core/src/main/scala/org/graphframes/examples/EmbeddingsExample.scala
@@ -21,12 +21,12 @@ object EmbeddingsExample {
21
throw new RuntimeException("expected three arg: input path, model type, output path")
22
}
23
24
- val filePath = Paths.get(args(0).strip())
25
- val modelType = args(1).strip()
+ val filePath = Paths.get(args(0).trim())
+ val modelType = args(1).trim()
26
if (!Seq("word2vec", "hash2vec").contains(modelType)) {
27
throw new RuntimeException("supported models are word2vec and hash2vec")
28
29
- val outputPath = Paths.get(args(2).strip())
+ val outputPath = Paths.get(args(2).trim())
30
val sparkConf = new SparkConf()
31
.setMaster("local[*]")
32
.setAppName("GraphFramesBenchmarks")
0 commit comments