Newer
Older
import pytest
from nlp import *
assert Rules(A="B C | D E") == {'A': [['B', 'C'], ['D', 'E']]}
assert Lexicon(Art="the | a | an") == {'Art': ['the', 'a', 'an']}
import pytest
from nlp import *
assert Rules(A="B C | D E") == {'A': [['B', 'C'], ['D', 'E']]}
assert Lexicon(Art="the | a | an") == {'Art': ['the', 'a', 'an']}