phonemizer-3.2.0
-
bug fixes
- Fixed a bug when trying to restore punctuation on very long text.
See #108
- Fixed a bug when trying to restore punctuation on very long text.
-
improvements
- Improved consistency with the handling of word separators when
preserving punctuation, and when using a word separator that is
not a literal space character. See
#106
- Improved consistency with the handling of word separators when
-
new features
-
Added the option to define punctuation with a regular expression.
Previously only strings were accepted. See #120-
In the python API, the
punctuation_marks
parameter can now be
passed tophonemize
(or a backend constructor) as are.Pattern
that defines which characters will be matched as punctuation.
Passingpunctuation_marks
as a str will continue to function as
before, treating each character in the string as a punctuation mark. -
Added the optional parameter
--punctuation_marks_is_regex
to the CLI
interface. When used, the CLI will attempt to compile are.Pattern
from the value passed to--punctuation-marks
.
-
-