Esempio 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))
Esempio 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()
Esempio 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()
Esempio 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))