CoEDL / elpis

🙊 software for creating speech recognition models.
https://elpis.readthedocs.io/en/latest/
Apache License 2.0
151 stars 33 forks source link

Use regex pattern matching to do this a nicer way. (and the other instance, too), this is messy and uncontrolled. #264

Open benfoley opened 2 years ago

benfoley commented 2 years ago

Use regex pattern matching to do this a nicer way. (and the other instance, too), this is messy and uncontrolled.

Originally posted by @nicklambourne in https://github.com/CoEDL/elpis/pull/255#r762468608

benfoley commented 2 years ago
tx_name = f"{TX_NAME}{i}"
while tx_name in elpis.list_transcriptions():
    i = i + 1
    tx_name = f"{TX_NAME}{i}"

In the HFT CLI example files.