generator.py - Supported to process label file with out-of-order records within a phonetic