Ejemplo n.º 1
0
def test_get_intent_data(mocker):
    store = ModelStore()
    serviceid = "MedicalAssistant-test"
    model_type = "ir"
    engine = "ice_commons.er.engines.mitie_ner.MitieCustomNER"
    text = "I would like to have an appointment of Dr Merin on 15 / 10 / 2018 for Eliza"
    mocker.patch.object(store, 'get_model', None)
    assert store.get_intent(serviceid, model_type, engine, text) is None
Ejemplo n.º 2
0
def test_get_intent_null():
    store = ModelStore()
    serviceid = model_type = engine = text = ""
    assert store.get_intent(serviceid, model_type, engine, text) == ([], [])