Example #1
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file)
Example #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
Example #3
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file)
Example #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
Example #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
Example #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
Example #7
0
def pytest_funcarg__pos_tag_corp(request):
    return corpus.open(test_file, tagger=corpus.tagger())
Example #8
0
def pytest_funcarg__test_corp(request):
    return corpus.open(test_file, tagger=corpus.dummy_tagger())