def setUp(self): # Define and config the Pipeline self.fp = tempfile.NamedTemporaryFile(mode='w', suffix='.jsonl', delete=False) self.nlp = Pipeline() self.nlp.set_reader(ProdigyReader()) self.create_sample_file()
def setUp(self): # Define and config the Pipeline self.fp = tempfile.NamedTemporaryFile(mode="w", suffix=".jsonl", delete=False) self.nlp = Pipeline[DataPack]() self.nlp.set_reader(ProdigyReader()) self.nlp.initialize() self.create_sample_file()