Exemplo n.º 1
0
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))
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 4
0
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))