diff options
author | s123188 <s123188@S123188.campus.tue.nl> | 2014-05-19 17:12:11 +0200 |
---|---|---|
committer | s123188 <s123188@S123188.campus.tue.nl> | 2014-05-19 17:12:11 +0200 |
commit | 31b7d626994d07d2e8f7f0bf1d1c3938450f7893 (patch) | |
tree | 22a3d6c7848b94d5fbb4b5f95b430eb737cf0c95 | |
parent | 7876b52e997de1530051396814180beb68d30001 (diff) | |
download | Goldfarmer-31b7d626994d07d2e8f7f0bf1d1c3938450f7893.tar.gz |
fixed wordcloud again
-rw-r--r-- | src/main/Analyzor.java | 6 |
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;
}
}
|