Exemplo n.º 1
0
def test_completion():
    v = {'X': 'apple'}
    natex = NatexNLG('i have $X in my $Y')
    assert natex.generate(vars=v) is None
    natex = NatexNLG('i have $X')
    assert not natex.is_complete()
Exemplo n.º 2
0
def test_completion():
    v = {"X": "apple"}
    natex = NatexNLG("i have $X in my $Y")
    assert natex.generate(vars=v) is None
    natex = NatexNLG("i have $X")
    assert not natex.is_complete()