I have this sentenceparser with keyword regex pattern: [^.]*\b(keywords)\b[^.]*[.]
And it works well apart from it will not end sentences to ! and ? symbols, only to dots. So how do I modify it? I tried "[^.]*\\b(" + keywords + ")\\b[^.]*[.!?]"
and that didnt work.
Aucun commentaire:
Enregistrer un commentaire