@@ -0,0 +1,889 @@
+package com.lahodiuk.postagger;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0Apublic class Sentence %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09Sentence sentence = new Sentence(%22%D0%92 %D0%B8%D1%81%D1%82%D0%BE%D1%80%D0%B8%D0%B8 %D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D1%8B %D1%8D%D1%82%D0%BE %D1%83%D0%B6%D0%B5 %D0%BD%D0%B5 %D0%BF%D0%B5%D1%80%D0%B2%D1%8B%D0%B9 %C2%AB%D1%80%D0%B5%D0%B1%D1%80%D0%B5%D0%BD%D0%B4%D0%B8%D0%BD%D0%B3%C2%BB.%22);%0A%09%09System.out.println(sentence.getSentence());%0A%09%09for (String s : sentence.getTokens()) %7B%0A%09%09%09System.out.println(s);%0A%09%09%7D%0A%09%7D%0A%0A%09private String sentence;%0A%0A%09private List%3CString%3E tokens;%0A%0A%09public Sentence(String sentence) %7B%0A%09%09this.sentence = sentence;%0A%0A%09%09this.tokens = new ArrayList%3C%3E();%0A%09%09Pattern pattern = Pattern.compile(%22(%5C%5Cd+%7C%5C%5Cp%7BL%7D+%7C%5B%5E%5C%5Cs%5D)%22);%0A%09%09Matcher matcher = pattern.matcher(sentence);%0A%09%09while (matcher.find()) %7B%0A%09%09%09this.tokens.add(matcher.group());%0A%09%09%7D%0A%09%7D%0A%0A%09public List%3CString%3E getTokens() %7B%0A%09%09return this.tokens;%0A%09%7D%0A%0A%09public String getSentence() %7B%0A%09%09return this.sentence;%0A%09%7D%0A%7D%0A

Class for sentence