PR #31946: Expose tf.keras.preprocessing.text.tokenizer_from_json to match keras API
PR #31946: Expose tf.keras.preprocessing.text.tokenizer_from_json to match keras API

Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/31946

Note: This fix is a a re-apply of #30062

PR #30062 fixed #30061 issue. However, due to an incompatibility issue i...

PiperOrigin-RevId: 275653328
Change-Id: I80a80a0bbd6eea96868d9d9c89169022c705fc97

adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,gunan/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,xzturn/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,jhseu/tensorflow,xzturn/tensorflow,yongtang/tensorflow,yongtang/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,jhseu/tensorflow,annarev/tensorflow,jhseu/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,frreiss/tensorflow-fred,yongtang/tensorflow,yongtang/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,jhseu/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,aldian/tensorflow,aldian/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,aam-at/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,paolodedios/tensorflow,annarev/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,annarev/tensorflow,xzturn/tensorflow,freedomtan/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,petewarden/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,aldian/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,frreiss/tensorflow-fred,freedomtan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,annarev/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aldian/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,arborh/tensorflow,Intel-tensorflow/tensorflow,sarvex/tensorflow,jhseu/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,yongtang/tensorflow,yongtang/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,xzturn/tensorflow,aam-at/tensorflow,petewarden/tensorflow,aam-at/tensorflow,gunan/tensorflow,paolodedios/tensorflow,xzturn/tensorflow,aam-at/tensorflow,aam-at/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,yongtang/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow,gunan/tensorflow,gunan/tensorflow,aam-at/tensorflow,aldian/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,aam-at/tensorflow,petewarden/tensorflow,petewarden/tensorflow,petewarden/tensorflow,cxxgtxy/tensorflow,adit-chandra/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,aam-at/tensorflow,gunan/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,Intel-Corporation/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,Intel-tensorflow/tensorflow,yongtang/tensorflow,annarev/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,arborh/tensorflow,aldian/tensorflow,arborh/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,karllessard/tensorflow,ppwwyyxx/tensorflow,renyi533/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,jhseu/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,karllessard/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,arborh/tensorflow,karllessard/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,adit-chandra/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,aldian/tensorflow,xzturn/tensorflow,annarev/tensorflow,gunan/tensorflow,freedomtan/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once