Skip to Content
移动端AI与ML应用开发:基于iOS和Android
book

移动端AI与ML应用开发:基于iOS和Android

by Laurence Moroney
January 2023
Intermediate to advanced
288 pages
6h 6m
Chinese
China Machine Press
Content preview from 移动端AI与ML应用开发:基于iOS和Android
120
|
7
下文(这是一个问题),以及我过去聊天时使用的方言而生成的。当被邀请参加活动时,
我经常说“当然”!
7-5
Android
即时消息中的智能回复
构建使用 ML Kit Smart Reply API 来获得类似功能的应用程序非常简单。接下来让我们
探讨如何做到这一点。
7.3.1
1
步:创建应用程序并集成
ML Kit
与以前一样,使用 Xcode 创建一个简单的单一视图应用程序。完成后,将以下 podfile
放在与
.xcproject
相同的目录中:
platform :ios, '10.0'
target 'MLKitSmartReplyExample' do
pod 'GoogleMLKit/SmartReply'
end
在本例中,我的项目名为
MLKitSmartReplyExample
,因此请务必使用你的项目名称作为
target
。运行
pod install
,完成后,打开
.xcworkspace
继续。
7.3.2
2
步:创建故事板、输出和动作
为了让这个应用程序保持简单,创建一个有两个标签和一个按钮的故事板。最上面的标
签包含我和朋友之间的模拟对话。当用户按下按钮时,智能回复模型用于生成可能的回
复。回复将呈现在第二个标签中。因此,从故事板的角度来看,你的 UI 应该如图 7-6
所示。
正文.indd 120正文.indd 120 2023-4-30 9:08:532023-4-30 9:08:53
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

人工智能驱动的商业智能

人工智能驱动的商业智能

Tobias Zwingmann
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9787111713081