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
Android
上使用
ML Kit
的文本处理应用程序
|
75
一个值会匹配多个模式,因此,例如,书的 ISBN 以三位数字开头,它与电话号码的模
式匹配,因此它被检测为两个实体!
5-1
:从文本中提取实体
考虑到这一点,ML Kit 拥有实体提取 API,可以创建一个能读取此类数据的应用程序
包括地址、电话号码、电子邮件等。我们将在本节探讨如何创建这样的应用程序。
5.1.1
创建应用程序
我假设你已经完成了第 3 章中所示的创建新应用程序的步骤。如果你还没有,我建议你
先从那里开始。和以前一样,使用 Android Studio 创建一个新的单一视图应用程序。找
到应用级 build.gradle 文件并添加实体提取库:
implementation 'com.google.mlkit:entity-extraction:16.0.0-beta1'
请注意,在撰写本书时,实体提取是测试版产品,因此可能存在一些错误。此外,如果
你正在关注此内容,请务必查看 ML Kit 文档中的实体提取站点以获取最新版本(
https://
oreil.ly/DP4WI
)。
正文.indd 75正文.indd 75 2023-4-30 9:08:202023-4-30 9:08:20
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