Exemplo n.º 1
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file)
Exemplo n.º 2
0
 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
Exemplo n.º 3
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file)
Exemplo n.º 4
0
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
Exemplo n.º 5
0
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
Exemplo n.º 6
0
 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
Exemplo n.º 7
0
def pytest_funcarg__pos_tag_corp(request):
    return corpus.open(test_file, tagger=corpus.tagger())
Exemplo n.º 8
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file, tagger=corpus.dummy_tagger())