{"record":{"id":"a9c94148c013ea07","repo":"tensorflow/models","slug":"no-data-processor-found-for-the-given-regression-t","errorCode":null,"errorMessage":"No data processor found for the given regression task.","messagePattern":"No data processor found for the given regression task\\.","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"official/nlp/data/create_finetuning_data.py","lineNumber":309,"sourceCode":"  else:\n    assert FLAGS.tokenization == \"SentencePiece\"\n    tokenizer = tokenization.FullSentencePieceTokenizer(FLAGS.sp_model_file)\n    processor_text_fn = functools.partial(\n        tokenization.preprocess_text, lower=FLAGS.do_lower_case)\n\n  if FLAGS.tfds_params:\n    processor = classifier_data_lib.TfdsProcessor(\n        tfds_params=FLAGS.tfds_params, process_text_fn=processor_text_fn)\n    return classifier_data_lib.generate_tf_record_from_data_file(\n        processor,\n        None,\n        tokenizer,\n        train_data_output_path=FLAGS.train_data_output_path,\n        eval_data_output_path=FLAGS.eval_data_output_path,\n        test_data_output_path=FLAGS.test_data_output_path,\n        max_seq_length=FLAGS.max_seq_length)\n  else:\n    raise ValueError(\"No data processor found for the given regression task.\")\n\n\ndef generate_squad_dataset():\n  \"\"\"Generates squad training dataset and returns input meta data.\"\"\"\n  assert FLAGS.squad_data_file\n  if FLAGS.tokenization == \"WordPiece\":\n    return squad_lib_wp.generate_tf_record_from_json_file(\n        input_file_path=FLAGS.squad_data_file,\n        vocab_file_path=FLAGS.vocab_file,\n        output_path=FLAGS.train_data_output_path,\n        translated_input_folder=FLAGS.translated_squad_data_folder,\n        max_seq_length=FLAGS.max_seq_length,\n        do_lower_case=FLAGS.do_lower_case,\n        max_query_length=FLAGS.max_query_length,\n        doc_stride=FLAGS.doc_stride,\n        version_2_with_negative=FLAGS.version_2_with_negative,\n        xlnet_format=FLAGS.xlnet_format)\n  else:","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/nlp/data/create_finetuning_data.py#L291-L327","documentation":"Error \"No data processor found for the given regression task.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/nlp/data/create_finetuning_data.py:309 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}