Frontend

Utilities to convert structural representation that has rich linguistic contexts (e.g, HTS-style full-context label) to its numerical form. Note that the module doesn’t mean to cover language-dependent text processing frontend.

Merlin frontend

The code here was initally taken from Merlin’s label_normalisation.py and refactored to be stateless and functional APIs.

linguistic_features(hts_labels, *args, **kwargs) Linguistic features from HTS-style full-context labels.
duration_features(hts_labels, *args, **kwargs) Duration features from HTS-style full-context labels.