def pytest_funcarg__test_corp(request): return corpus.open(test_file)
def open_corpus(self): self.corpus = corpus.open(self.train_file(), tagger=corpus.tagger()) self.corpus.minor_word_frequency = self.minor_word() return self.corpus
def pytest_funcarg__test_conf_v2(request): args = "--mode train --embed 50 --hidden 30 --minbatch 2 --model v2 --epoch 2 --minor_word 0".split(" ") conf = config.parse_args(raw_args = args) conf.corpus = corpus.open(test_file) return conf
def pytest_funcarg__test_conf_v2(request): args = "--mode train --embed 50 --hidden 30 --minbatch 2 --model v2 --epoch 2 --minor_word 0".split( " ") conf = config.parse_args(raw_args=args) conf.corpus = corpus.open(test_file) return conf
def pytest_funcarg__pos_tag_corp(request): return corpus.open(test_file, tagger=corpus.tagger())
def pytest_funcarg__test_corp(request): return corpus.open(test_file, tagger=corpus.dummy_tagger())