예제 #1
0
파일: cli.py 프로젝트: karpitsky/pymorphy2
def make_test_suite(dict_filename, out_filename, word_limit=100):
    """
    Make a test suite from (unparsed) OpenCorpora dictionary.
    """
    return test_suite_generator.make_test_suite(dict_filename,
                                                out_filename,
                                                word_limit=int(word_limit))
예제 #2
0
 def test_test_suite_generator(self, tmpdir):
     # just make sure it doesn't raise an exception
     out_path = tmpdir.join('test_suite.txt')
     make_test_suite(self.XML_PATH, str(out_path))
     out_path.check()
예제 #3
0
 def test_test_suite_generator(self, tmpdir):
     # just make sure it doesn't raise an exception
     out_path = tmpdir.join('test_suite.txt')
     make_test_suite(self.XML_PATH, str(out_path))
     out_path.check()
예제 #4
0
파일: cli.py 프로젝트: alafin/pymorphy2
def make_test_suite(dict_filename, out_filename, word_limit=100):
    """ Make a test suite from (unparsed) OpenCorpora dictionary. """
    return test_suite_generator.make_test_suite(
        dict_filename, out_filename, word_limit=int(word_limit))