{"record":{"id":"38f28bfe54bbb9cc","repo":"tensorflow/models","slug":"todo-b-170480226-implement","errorCode":null,"errorMessage":"TODO(b/170480226): implement","messagePattern":"TODO\\(b/170480226\\): implement","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"official/nlp/modeling/layers/text_layers.py","lineNumber":177,"sourceCode":"      values = rt.values\n      row_splits = rt.row_splits\n      row_splits = tf.reshape(row_splits, [batch_size + 1])\n      return tf.RaggedTensor.from_row_splits(values, row_splits)\n\n    # Call the tokenizer.\n    if self.tokenize_with_offsets:\n      tokens, start_offsets, limit_offsets = (\n          self._bert_tokenizer.tokenize_with_offsets(inputs))\n      tokens = tf.cast(tokens, dtype=tf.int32)\n      return _reshape(tokens), _reshape(start_offsets), _reshape(limit_offsets)\n    else:\n      tokens = self._bert_tokenizer.tokenize(inputs)\n      tokens = tf.cast(tokens, dtype=tf.int32)\n      return _reshape(tokens)\n\n  def get_config(self):\n    # Skip in tf.saved_model.save(); fail if called direcly.\n    raise NotImplementedError(\"TODO(b/170480226): implement\")\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":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/nlp/modeling/layers/text_layers.py#L159-L195","documentation":"Error \"TODO(b/170480226): implement\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/nlp/modeling/layers/text_layers.py:177 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"}