Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Hầu hết ứng dụng cung cấp cho người dùng rất ít hoạt động tương tác với văn bản, ngoài các thao tác cắt/sao chép/dán cơ bản. Việc trích xuất thực thể giúp cải thiện trải nghiệm người dùng trong ứng dụng nhờ hiểu được văn bản và cho phép bạn thêm các lối tắt hữu ích dựa trên ngữ cảnh.
API trích xuất thực thể cho phép bạn nhận dạng các thực thể cụ thể trong văn bản tĩnh và trong khi bạn nhập. Sau khi xác định một thực thể, bạn có thể dễ dàng bật nhiều thao tác cho người dùng dựa trên loại thực thể. Sau đây là các thực thể được hỗ trợ:
Thực thể
Ví dụ:
Address (Địa chỉ)
350 third Street, Cambridge MA
Ngày-giờ
2019/09/2029, hẹn gặp lúc 18:00 ngày mai
Địa chỉ email
entity-extraction@google.com
Số chuyến bay (chỉ áp dụng cho mã chuyến bay IATA)
API này tập trung vào độ chính xác hơn là nhận dạng. Một số thực thể của một thực thể cụ thể có thể không được phát hiện để đảm bảo tính chính xác.
Hầu hết các thực thể đều có thể được phát hiện theo nhiều ngôn ngữ và khu vực. Khả năng phát hiện địa chỉ và số điện thoại phụ thuộc vào ngôn ngữ đã chọn. Tính năng trích xuất thực thể hỗ trợ những ngôn ngữ sau:
Tiếng Ả Rập
Tiếng Bồ Đào Nha
Tiếng Anh (Mỹ, Anh)
Tiếng Hà Lan
Tiếng Pháp
Tiếng Đức
Tiếng Ý
Tiếng Nhật
Tiếng Hàn
Tiếng Ba Lan
Tiếng Nga
Tiếng Trung (Giản thể, Phồn thể)
Tiếng Tây Ban Nha
Tiếng Thái
Tiếng Thổ Nhĩ Kỳ
Ví dụ
Văn bản đầu vào
Thực thể đã được phát hiện
Gặp tôi tại 1600 Amphitheatre Parkway, Mountain View, CA, 94043
Hãy cùng tổ chức một cuộc họp để thảo luận.
Loại pháp nhân 1: Địa chỉ
Văn bản thực thể 1: "1600 Ampitheaterre Parkway, Mountain View, CA 94043"
Bạn có thể liên hệ với nhóm kiểm tra vào ngày mai theo địa chỉ info@google.com để xác định tiến trình phù hợp nhất.
Loại thực thể 1: Ngày giờ
Văn bản thực thể 1: = "Ngày 24 tháng 6 năm 2020"
Loại thực thể 2: Địa chỉ email
Văn bản của thực thể 2: info@google.com
Đơn đặt hàng của bạn đã được vận chuyển từ Google. Để theo dõi tiến trình giao hàng, vui lòng sử dụng số theo dõi sau: 9612804152073070474837
Loại thực thể: Số theo dõi
Văn bản thực thể: "9612804152073070474837"
Gọi cho nhà hàng theo số 555-555-1234 để thanh toán cho bữa tối. Số thẻ của tôi là 4111-1111-1111-1111.
Loại thực thể 1: Số điện thoại
Văn bản của thực thể 1: "555-555-1234"
Loại thực thể 2: Thẻ thanh toán
Văn bản của thực thể 2: "4111 1111 1111 1111"
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe Entity Extraction API identifies specific entities like addresses, dates, emails, and more within text, enabling context-aware actions in your app.\u003c/p\u003e\n"],["\u003cp\u003eThis API prioritizes accuracy, potentially missing some entity instances to ensure precision in its identification.\u003c/p\u003e\n"],["\u003cp\u003eEntity extraction supports a wide range of languages, including English, Spanish, Chinese, Japanese, and others, although address and phone number detection depends on the specific language.\u003c/p\u003e\n"],["\u003cp\u003eWhile in beta, this API is not subject to an SLA or deprecation policy, and backward-compatibility breaking changes may occur.\u003c/p\u003e\n"]]],[],null,["# Entity extraction\n\n| This API is offered in beta, and is not subject to any SLA or deprecation policy. Changes may be made to this API that break backward compatibility.\n\nMost apps offer users very little interaction with text beyond the basic\ncut/copy/paste operations. Entity extraction improves the user experience inside\nyour app by understanding text and allowing you to add helpful shortcuts based\non context.\n\n[iOS](/ml-kit/language/entity-extraction/ios)\n[Android](/ml-kit/language/entity-extraction/android)\n\nThe entity extraction API allows you to recognize specific entities within\nstatic text and while you're typing. Once an entity is identified, you can\neasily enable different actions for the user based on the entity type. Supported\nentities included are:\n\n| Entity | Example |\n|------------------------------------------------------|-------------------------------------------------------|\n| Address | 350 third street, Cambridge MA |\n| Date-Time | 2019/09/29, let's meet tomorrow at 6pm |\n| Email address | entity-extraction@google.com |\n| Flight Number (IATA flight codes only) | LX37 |\n| IBAN | CH52 0483 0000 0000 0000 9 |\n| ISBN (version 13 only) | 978-1101904190 |\n| Money/Currency (Arabic numerals only) | $12, 25 USD |\n| Payment / Credit Cards | 4111 1111 1111 1111 |\n| Phone Number | (555) 225-3556 12345 |\n| Tracking Number (standardized international formats) | 1Z204E380338943508 |\n| URL | www.google.com https://en.wikipedia.org/wiki/Platypus |\n\nThis API focuses on precision over recognition. Some instances of a particular\nentity might not be detected in favor of ensuring accuracy.\n\nMost entities can be detected across languages and locales. The ability to\ndetect addresses and phone numbers depends on the selected language. Entity\nextraction supports the following languages:\n\n- Arabic\n- Portuguese\n- English (US, UK)\n- Dutch\n- French\n- German\n- Italian\n- Japanese\n- Korean\n- Polish\n- Russian\n- Chinese (Simplified, Traditional)\n- Spanish\n- Thai\n- Turkish\n\nExamples\n--------\n\n| Input text | Detected entities |\n|-------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| Meet me at 1600 Amphitheatre Parkway, Mountain View, CA, 94043 Let's organize a meeting to discuss. | Entity 1 type: Address Entity 1 text: \"1600 Ampitheatre Parkway, Mountain View, CA 94043\" |\n| You can contact the test team tomorrow at info@google.com to determine the best timeline. | Entity 1 type: Date-Time Entity 1 text: = \"June 24th, 2020\" Entity 2 type: Email address Entity 2 text: info@google.com |\n| Your order has shipped from Google. To follow the progress of your delivery please use this tracking number: 9612804152073070474837 | Entity type: Tracking number Entity text: \"9612804152073070474837\" |\n| Call the restaurant at 555-555-1234 to pay for dinner. My card number is 4111-1111-1111-1111. | Entity 1 type: Phone number Entity 1 text: \"555-555-1234\" Entity 2 type: Payment card Entity 2 text: \"4111 1111 1111 1111\" |"]]