diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 11:46:49 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-19 11:46:49 +0200 |
commit | bbf426bc8e8975000709c6cb53adf9d2755da87b (patch) | |
tree | b211cb051a47d33718022a24060b13360981ae8e /src | |
parent | 8da7d10ea75044933cf72c46fb8e27d59aeda563 (diff) | |
download | Goldfarmer-bbf426bc8e8975000709c6cb53adf9d2755da87b.tar.gz |
Replace the punctuality with spaces.
Diffstat (limited to 'src')
-rw-r--r-- | src/analysis/BrandChecker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analysis/BrandChecker.java b/src/analysis/BrandChecker.java index 5bde55b..0f7fcad 100644 --- a/src/analysis/BrandChecker.java +++ b/src/analysis/BrandChecker.java @@ -130,7 +130,7 @@ public class BrandChecker { */ private String removePunct(String text) { //text = text.replaceAll("https?://\\S*", ""); - text = text.replaceAll(",", " "); + text = text.replaceAll("[.,!?();\"'-]", " "); return text; } |