We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b92db6 commit 3365da3Copy full SHA for 3365da3
pysbd/lang/common/numbers.py
@@ -5,7 +5,7 @@
5
6
class Common(object):
7
8
- # added special case: r"[。..!!?].*" to handle intermittent dots, exclaimation, etc.
+ # added special case: r"[。..!!?].*" to handle intermittent dots, exclamation, etc.
9
# TODO: above special cases group can be updated as per developer needs
10
SENTENCE_BOUNDARY_REGEX = r"((?:[^)])*)(?=\s?[A-Z])|「(?:[^」])*」(?=\s[A-Z])|\((?:[^\)]){2,}\)(?=\s[A-Z])|\'(?:[^\'])*[^,]\'(?=\s[A-Z])|\"(?:[^\"])*[^,]\"(?=\s[A-Z])|\“(?:[^\”])*[^,]\”(?=\s[A-Z])|[。..!!?].*|\S.*?[。..!!??ȸȹ☉☈☇☄]"
11
# # Rubular: http://rubular.com/r/NqCqv372Ix
0 commit comments