diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 12:24:20 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 12:24:20 +0200 |
commit | bb7a9df946a78941c83ff2499e0e545f3796dc90 (patch) | |
tree | 037bfbdd4c820c459ef2607e76a071e7c025b86d | |
parent | d850ad43119e42524e8cf87e7945557defa2ac12 (diff) | |
download | Goldfarmer-bb7a9df946a78941c83ff2499e0e545f3796dc90.tar.gz |
Also remove @ and # from input text.
-rw-r--r-- | src/analysis/BrandChecker.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/analysis/BrandChecker.java b/src/analysis/BrandChecker.java index 0f7fcad..c22d47d 100644 --- a/src/analysis/BrandChecker.java +++ b/src/analysis/BrandChecker.java @@ -129,8 +129,7 @@ public class BrandChecker { * Removes punctuation and urls. */ private String removePunct(String text) { - //text = text.replaceAll("https?://\\S*", ""); - text = text.replaceAll("[.,!?();\"'-]", " "); + text = text.replaceAll("[.,!?();\"'@#-]", " "); return text; } |