diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 13:25:22 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 13:25:22 +0200 |
commit | 3b284ecec5f31b877b873ec925d20f10611f4a1a (patch) | |
tree | 1a4619a3bc78742ed7800e38867c7f4e9526bff3 | |
parent | 406baaa929f4f49f778d5d72499e97a29064d40b (diff) | |
download | Goldfarmer-3b284ecec5f31b877b873ec925d20f10611f4a1a.tar.gz |
BrandChecker removePunct replaces everything.
-rw-r--r-- | src/analysis/BrandChecker.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/BrandChecker.java b/src/analysis/BrandChecker.java index c22d47d..10e22b4 100644 --- a/src/analysis/BrandChecker.java +++ b/src/analysis/BrandChecker.java @@ -126,10 +126,10 @@ public class BrandChecker { } /** - * Removes punctuation and urls. + * Removes punctuation. */ private String removePunct(String text) { - text = text.replaceAll("[.,!?();\"'@#-]", " "); + text = text.replaceAll("[^a-zA-Z0-9]", " "); return text; } |