self.prepare_vectorizers(tokens_batch)
// Process each example in the batch by itself to hide the one at a time nature
examples = [self.vectorize([tokens]) for tokens in tokens_batch]
outcomes_list = np.concatenate([self.model.run(None, example)[0] for example in examples], axis=0)
return self.format_output(outcomes_list, tokens_batch, label_field=kwargs.get("label", "label"))
def vectorize(self, tokens_batch):