Skip to content

Commit 6e4a8bf

Browse files
fix: use trim instead f strip (#816)
1 parent adf2f43 commit 6e4a8bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/src/main/scala/org/graphframes/examples/EmbeddingsExample.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ object EmbeddingsExample {
2121
throw new RuntimeException("expected three arg: input path, model type, output path")
2222
}
2323

24-
val filePath = Paths.get(args(0).strip())
25-
val modelType = args(1).strip()
24+
val filePath = Paths.get(args(0).trim())
25+
val modelType = args(1).trim()
2626
if (!Seq("word2vec", "hash2vec").contains(modelType)) {
2727
throw new RuntimeException("supported models are word2vec and hash2vec")
2828
}
29-
val outputPath = Paths.get(args(2).strip())
29+
val outputPath = Paths.get(args(2).trim())
3030
val sparkConf = new SparkConf()
3131
.setMaster("local[*]")
3232
.setAppName("GraphFramesBenchmarks")

0 commit comments

Comments
 (0)