diff --git a/src/edu/cmu/side/recipe/PredictionServer.java b/src/edu/cmu/side/recipe/PredictionServer.java index d082f81..dd3f7c3 100644 --- a/src/edu/cmu/side/recipe/PredictionServer.java +++ b/src/edu/cmu/side/recipe/PredictionServer.java @@ -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); @@ -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 allWords = Stream.of(jsonStr.replaceAll("[^a-zA-Z1-9- ]", " ").split(" ")) .collect(Collectors.toCollection(ArrayList::new));