Previously, each time KaldiInterface was used, the interface.json config file was rebuilt. Tracked it down to the fsobject.pyinit doing self.ConfigurationInterface(self)._save({}) which cleared the file, then repopulated with name, hash etc. I've added a check to now only do that if there is not an existing interface file, so any prior state objects are still accessible by doing eg:
kaldi = KaldiInterface('/elpis/state')
m = kaldi.get_model('mx')
This means that we can now do some training, and have a second script access the dataset/pron_dicts/models from disk.
Previously, each time KaldiInterface was used, the
interface.json
config file was rebuilt. Tracked it down to thefsobject.py
init
doingself.ConfigurationInterface(self)._save({})
which cleared the file, then repopulated with name, hash etc. I've added a check to now only do that if there is not an existing interface file, so any prior state objects are still accessible by doing eg:This means that we can now do some training, and have a second script access the dataset/pron_dicts/models from disk.