def output_file_empty_story(tmpdir_factory): fn = tmpdir_factory.mktemp('output') generate(input_path_empty, output_path=str(fn), training_ratio=1.0, n_sub=None, for_story=True) return fn + 'training.md'
def output_file_story_testset(tmpdir_factory): fn = tmpdir_factory.mktemp('output') generate(input_path, output_path=str(fn), training_ratio=.7, n_sub=100, for_story=True) return fn + 'training.md'
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File name : test.py Description : quick and dirty first script Author : Clément CHOUKROUN, Alexandre MOURACHKO Date created : 2018/04/18 Python Version : 3.6 """ from xwords.core_output import generate input_path = "./xwords/tests/input_test.txt" generate(input_path)