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 0e451eb commit 6b92db6Copy full SHA for 6b92db6
pysbd/lang/common/numbers.py
@@ -6,7 +6,7 @@
6
class Common(object):
7
8
# added special case: r"[。..!!?].*" to handle intermittent dots, exclaimation, etc.
9
- # TODO: above special cases group can be updates as per devloper needs
+ # 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
12
QUOTATION_AT_END_OF_SENTENCE_REGEX = r'[!?\.-][\"\'“”]\s{1}[A-Z]'
0 commit comments