def test_nr_hmm_test_accuracy(): confusion = scorer.get_confusion(NR_TEST_FILE, 'hmm-te-nr.preds') acc = scorer.accuracy(confusion) ok_(acc > .903)
def test_nr_hmm_dev_accuracy(): confusion = scorer.get_confusion(NR_DEV_FILE, 'hmm-dev-nr.preds') acc = scorer.accuracy(confusion) ok_(acc > .910)
def test_hmm_dev_accuracy(): confusion = scorer.get_confusion(DEV_FILE, 'hmm-dev-en.preds') acc = scorer.accuracy(confusion) ok_(acc > .870)
def test_hmm_test_accuracy(): confusion = scorer.get_confusion(TEST_FILE, 'hmm-te-en.preds') acc = scorer.accuracy(confusion) ok_(acc > .880)
def test_bilstm_test_accuracy(): confusion = scorer.get_confusion(DEV_FILE,'bilstm-te-en.preds') acc = scorer.accuracy(confusion) ok_(acc > .83)