Exemple #1
0
def main():
    trained_slu_test('./dailogreg.nbl.model.all', '../bootstrap.trn',
                     Utterance, '../bootstrap.sem')
    trained_slu_test('./dailogreg.asr.model.all', '../bootstrap.trn',
                     Utterance, '../bootstrap.sem')
    trained_slu_test('./dailogreg.trn.model.all', '../bootstrap.trn',
                     Utterance, '../bootstrap.sem')
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

if __name__ == "__main__":
    import autopath

from alex.applications.PublicTransportInfoCS.slu.dailogregclassifier.test import trained_slu_test
from alex.components.asr.utterance import Utterance

if __name__ == "__main__":
    trained_slu_test("./dailogreg.nbl.model.all", "../bootstrap.trn", Utterance, "../bootstrap.sem")
    trained_slu_test("./dailogreg.asr.model.all", "../bootstrap.trn", Utterance, "../bootstrap.sem")
    trained_slu_test("./dailogreg.trn.model.all", "../bootstrap.trn", Utterance, "../bootstrap.sem")
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from alex.applications.PublicTransportInfoCS.slu.dailogregclassifier.test import trained_slu_test
from alex.components.asr.utterance import Utterance

if __name__ == '__main__':
    import autopath

    trained_slu_test('./dailogreg.nbl.model.all', '../bootstrap.trn', Utterance, '../bootstrap.sem')
    trained_slu_test('./dailogreg.asr.model.all', '../bootstrap.trn', Utterance, '../bootstrap.sem')
    trained_slu_test('./dailogreg.trn.model.all', '../bootstrap.trn', Utterance, '../bootstrap.sem')
Exemple #4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

import autopath

from alex.applications.PublicTransportInfoCS.slu.dailogregclassifier.test import trained_slu_test
from alex.components.asr.utterance import Utterance, UtteranceNBList

if __name__ == "__main__":
    # regular experiment evaluating models trained on training data and evaluated on deb and test data
    # **WARNING** due to data sparsity the metrics on the dev and test data fluctuate a lot
    # therefore meaningful results can be only obtained using N-fold cross validation

    trained_slu_test('./dailogreg.trn.model', '../dev.trn', Utterance,
                     '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.trn.model', '../test.trn', Utterance,
                     '../test.trn.hdc.sem')

    trained_slu_test('./dailogreg.asr.model', '../dev.asr', Utterance,
                     '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.asr.model', '../test.asr', Utterance,
                     '../test.trn.hdc.sem')

    trained_slu_test('./dailogreg.nbl.model', '../dev.nbl', UtteranceNBList,
                     '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.nbl.model', '../test.nbl', UtteranceNBList,
                     '../test.trn.hdc.sem')
Exemple #5
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

from alex.applications.PublicTransportInfoCS.slu.dailogregclassifier.test import trained_slu_test
from alex.components.asr.utterance import Utterance, UtteranceNBList

if __name__ == "__main__":
    import autopath

    # regular experiment evaluating models trained on training data and evaluated on deb and test data
    # **WARNING** due to data sparsity the metrics on the dev and test data fluctuate a lot
    # therefore meaningful results can be only obtained using N-fold cross validation

    trained_slu_test('./dailogreg.trn.model', '../dev.trn', Utterance, '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.trn.model', '../test.trn', Utterance, '../test.trn.hdc.sem')

    trained_slu_test('./dailogreg.asr.model', '../dev.asr', Utterance, '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.asr.model', '../test.asr', Utterance, '../test.trn.hdc.sem')

    trained_slu_test('./dailogreg.nbl.model', '../dev.nbl', UtteranceNBList, '../dev.trn.hdc.sem')

    trained_slu_test('./dailogreg.nbl.model', '../test.nbl', UtteranceNBList, '../test.trn.hdc.sem')

    # cheating experiment on all data using models trained on all data
    # though these models are used for live system
    trained_slu_test('./dailogreg.trn.model.all', '../all.trn', Utterance, '../all.trn.hdc.sem')
    trained_slu_test('./dailogreg.asr.model.all', '../all.asr', Utterance, '../all.trn.hdc.sem')