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
iOS
上使用
ML Kit
的文本处理应用程序
|
109
7-1
:在
iOS
上运行实体提取
正如你在文本下方看到的,生成了一个包含找到的实体的列表。例如,“明天下午 5 点”
被提取为日期时间。电话号码和电子邮件地址等其他信息也被正确提取。通常一个值会
匹配多个模式。例如,书的 ISBN 以三位数字开头,与电话号码的模式相匹配,因此它
被检测为两个实体!
现在让我们探索如何创建这个应用程序!
7.1.1
1
步:创建应用程序并添加
ML Kit pod
使用 Xcode,创建一个新应用程序。完成后,关闭 Xcode 并在
.xcproject
所在的目录中
创建一个 podfile
编辑该 podfile 以包含
GoogleMLKit/EntityExtraction
pod,如下所示:
platform :ios, '10.0'
# Comment the next line if you're not using Swift and don't want to use dynamic
# frameworks
use_frameworks!
target 'MLKitEntityExample' do
pod 'GoogleMLKit/EntityExtraction'
end
target
后面的值应该是你的项目名称,因此在本例中,我创建了一个名为
MLKitEntity-
Example
的项目。
完成后,运行
pod install
CocoaPods 将更新你的项目来使用 ML Kit 依赖库并生成
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

快速提升人工智能产品的实用指南

快速提升人工智能产品的实用指南

Hamel Husain
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar
AI原生软件交付

AI原生软件交付

Nick Durkin, Eric Minick, Chinmay Gaikwad

Publisher Resources

ISBN: 9787111713081