Skip to content

Commit

Permalink
turn on the Logger to see why lightside isn't working properly on Res…
Browse files Browse the repository at this point in the history
…ource node
  • Loading branch information
jiuningzhong committed Mar 18, 2020
1 parent 2d66a36 commit 65e2e53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/edu/cmu/side/recipe/PredictionServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static void serve(int port, int threads) throws Exception {
connection.connect(address);
// logger.setLevel(Level.WARNING);

// logger.setLevel(Level.INFO);
logger.setLevel(Level.INFO);
logger.fine("Started server on port " + port + ".");

fileTxt = new FileHandler("Logging.txt", true);
Expand Down Expand Up @@ -1241,8 +1241,8 @@ protected String preprocessRawString(String jsonStr) throws IOException {
String rtn = "";
// PorterStemmer stemmer = new PorterStemmer();

// .toLowerCase()
// remove punctuations except "-" and numbers
// .toLowerCase()
// remove punctuations except "-" and numbers, SPLIT THEN JOIN
ArrayList<String> allWords = Stream.of(jsonStr.replaceAll("[^a-zA-Z1-9- ]", " ").split(" "))
.collect(Collectors.toCollection(ArrayList<String>::new));

Expand Down

0 comments on commit 65e2e53

Please sign in to comment.