diff options
Diffstat (limited to 'src/main/Analyzor.java')
-rw-r--r-- | src/main/Analyzor.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/Analyzor.java b/src/main/Analyzor.java index e893529..4b30134 100644 --- a/src/main/Analyzor.java +++ b/src/main/Analyzor.java @@ -129,4 +129,12 @@ public class Analyzor { data.beforeFirst();
}
+
+ private String replacePunct(String text) {
+ text = text.replaceAll("https?://\\S*", "");
+ text = text.replaceAll("[!?):;\"']", " $0");
+ text = text.replaceAll("[.,-](\\s|$)", " $0");
+ text = text.replaceAll("\\s[(\"']", "$0 ");
+ return text;
+ }
}
|