MCPcopy Create free account
hub / github.com/AnswerDotAI/ModernBERT / SynthTextDirectory

Class SynthTextDirectory

tests/test_utils.py:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14class SynthTextDirectory(object):
15 def __enter__(self):
16 path = create_synthetic_text_dataset()
17 self.path = path # type: ignore (reportUninitializedInstanceVariable)
18 return self.path
19
20 def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any):
21 del exc_type, exc_value, traceback # Unused
22 shutil.rmtree(self.path)
23
24
25def create_synthetic_text_dataset(n_samples: int = 16):

Callers 2

test_trainerFunction · 0.90
test_trainerFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_trainerFunction · 0.72
test_trainerFunction · 0.72