{"record":{"id":"5ee2737cf3bf6f85","repo":"tensorflow/models","slug":"not-implemented-yet","errorCode":null,"errorMessage":"Not implemented yet.","messagePattern":"Not implemented yet\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"official/nlp/modeling/layers/text_layers.py","lineNumber":653,"sourceCode":"    self.tokenize_with_offsets = tokenize_with_offsets\n    self._basic_tokenizer = bert_tokenizer.BasicTokenizer(lower_case=lower_case)  # pyrefly: ignore[missing-attribute]\n\n    # Read the vocab file into a list of tokens to create `fast_wp_tokenizer`.\n    self._vocab = [line.rstrip() for line in tf.io.gfile.GFile(vocab_file)]\n    self._fast_wp_tokenizer = text.FastWordpieceTokenizer(  # pyrefly: ignore[missing-attribute]\n        vocab=self._vocab, token_out_type=tf.int32, no_pretokenization=True)\n    self._special_tokens_dict = self._create_special_tokens_dict()\n\n  @property\n  def vocab_size(self):\n    return len(self._vocab)\n\n  def get_config(self):\n    # Skip in tf.saved_model.save(); fail if called direcly.\n    # We cannot just put the original, user-supplied vocab file name into\n    # the config, because the path has to change as the SavedModel is copied\n    # around.\n    raise NotImplementedError(\"Not implemented yet.\")\n\n  def get_special_tokens_dict(self):\n    \"\"\"Returns dict of token ids, keyed by standard names for their purpose.\n\n    Returns:\n      A dict from Python strings to Python integers. Each key is a standard\n      name for a special token describing its use. (For example, \"padding_id\"\n      is what BERT traditionally calls \"[PAD]\" but others may call \"<pad>\".)\n      The corresponding value is the integer token id. If a special token\n      is not found, its entry is omitted from the dict.\n\n      The supported keys and tokens are:\n        * start_of_sequence_id: looked up from \"[CLS]\"\n        * end_of_segment_id: looked up from \"[SEP]\"\n        * padding_id: looked up form \"[PAD]\"\n        * mask_id: looked up from \"[MASK]\"\n        * vocab_size: one past the largest token id used\n    \"\"\"","sourceCodeStart":635,"sourceCodeEnd":671,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/nlp/modeling/layers/text_layers.py#L635-L671","documentation":"Error \"Not implemented yet.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/nlp/modeling/layers/text_layers.py:653 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"}