MCPcopy Create free account
hub / github.com/huggingface/transformers / _dump_articles

Function _dump_articles

examples/seq2seq/test_seq2seq_examples.py:80–82  ·  view source on GitHub ↗
(path: Path, articles: list)

Source from the content-addressed store, hash-verified

78
79
80def _dump_articles(path: Path, articles: list):
81 with path.open("w") as f:
82 f.write("\n".join(articles))
83
84
85ARTICLES = [" Sam ate lunch today", "Sams lunch ingredients"]

Callers 2

make_test_data_dirFunction · 0.85
test_run_eval_bartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected