Skip to content

Commit

Permalink
Update Main.java
Browse files Browse the repository at this point in the history
  • Loading branch information
yasinuygun authored Jul 17, 2019
1 parent dd74c0f commit eed1557
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main/java/com/trendyol/recomengine/ml/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@
public class Main {

public static void main(String[] args) {
String reviewPath = null;
String modelPath = null;
if (args.length == 2) {
reviewPath = args[0];
modelPath = args[1];
} else {
if (args.length != 2) {
System.out.println("Expected arguments: <review-path> <model-path>");
System.exit(0);
}

String reviewPath = args[0];
String modelPath = args[1];

SparkSession spark = SparkSession
.builder()
Expand Down Expand Up @@ -152,4 +150,4 @@ public long getTimestamp() {
return timestamp;
}
}
}
}

0 comments on commit eed1557

Please sign in to comment.