MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / supported_corpus

Function supported_corpus

Megatron-LM/data_utils/__init__.py:57–59  ·  view source on GitHub ↗

checks if corpus name is defined in `corpora.py`

(corpus_name)

Source from the content-addressed store, hash-verified

55 return text
56
57def supported_corpus(corpus_name):
58 """checks if corpus name is defined in `corpora.py`"""
59 return corpus_name in corpora.NAMED_CORPORA
60
61def make_dataset(path, seq_length, text_key, label_key, lazy=False, process_fn=None, split=[1.],
62 delim=',', loose=False, binarize_sent=False, drop_unlabeled=False, tokenizer=None,

Callers 2

get_datasetFunction · 0.85
get_dataset_from_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected