我在tensorflow中有一个模型文件。我必须集成在Android应用程序,并建立一个示例应用程序。该模型接受标记化的输入。(数组而不是句子)。该应用程序接受用户的句子输入。如果tensorflow模型是用Python编写的,那么应该如何在Java android应用程序中实现标记器呢?
发布于 2021-01-29 01:43:51
我认为你可以在这里找到一些可重用的代码:https://github.com/tensorflow/examples/tree/master/lite/examples可能在bert_qa示例中?https://github.com/tensorflow/examples/tree/master/lite/examples/bert_qa/android/app/src/main/java/org/tensorflow/lite/examples/bertqa/tokenization
https://stackoverflow.com/questions/65900947
相似问题
领取专属 10元无门槛券
AI混元助手 在线答疑
洞察 腾讯核心技术
剖析业界实践案例