Example #1
0
def test_init_corpus():
    c = corpus.EnMarkCorpus(test_file, tagger=corpus.dummy_tagger())
    assert c.vocab['<unk>'] == 0
Example #2
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file, tagger=corpus.dummy_tagger())