summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authors123188 <s123188@S123188.campus.tue.nl>2014-05-19 17:12:11 +0200
committers123188 <s123188@S123188.campus.tue.nl>2014-05-19 17:12:11 +0200
commit31b7d626994d07d2e8f7f0bf1d1c3938450f7893 (patch)
tree22a3d6c7848b94d5fbb4b5f95b430eb737cf0c95
parent7876b52e997de1530051396814180beb68d30001 (diff)
downloadGoldfarmer-31b7d626994d07d2e8f7f0bf1d1c3938450f7893.tar.gz
fixed wordcloud again
-rw-r--r--src/main/Analyzor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/Analyzor.java b/src/main/Analyzor.java
index e00c753..bbe1b5e 100644
--- a/src/main/Analyzor.java
+++ b/src/main/Analyzor.java
@@ -277,9 +277,9 @@ public class Analyzor {
//removes punctuation
//also removes urls
private String removePunct(String text) {
- text = text.replaceAll("https?://\\S*", "");
- text = text.replaceAll("[.,!?();\"'-]", " ");
- text = text.replaceAll("[^\\x00-\\x7F]", " ");
+ text = text.replaceAll("https?://\\S*", " ");
+ text = text.replaceAll("@\\S*", " ");
+ text = text.replaceAll("[^a-zA-Z0-9#_-]", " ");
return text;
}
}