The ML Kit Entity Extraction Android Quickstart app demonstrates how to use the ML Kit Entity Extraction feature to recognize structured data in text.
- Run the sample code on your Android device or emulator
- Type messages to identify languages
- Try extending the code to add new features and functionality
- Enter text in the input box and hit "Trigger Entity Extraction".
- If any entities are found in the text, they will show up on the bottom of the screen.
- Click the download arrow in the top right corner to ensure the correct language model has been downloaded.
Input text | Detected entities |
---|---|
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" |
You can contact the test team tomorrow at [email protected] to determine the best timeline. | Entity 1 type: Date-Time Entity 1 text: = "June 24th, 2020" Entity 2 type: Email address |
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" |
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 |
Copyright 2020 Google, Inc.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.