Google is committed to advancing racial equity for Black communities. See how.

Textclassifier

  
Identifies conversations, links, selections, and other similar constructs in text.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
January 22, 2020 - - - 1.0.0-alpha03

Declaring dependencies

To add a dependency on TextClassifier, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

dependencies {
    implementation "androidx.textclassifier:textclassifier:1.0.0-alpha03"
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.0.0

TextClassifier Version 1.0.0-alpha03

January 22, 2020

androidx.textclassifier:textclassifier:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.

New features

API changes

  • setIncludeDefaultEntityTypes has been renamed to includeTypesFromTextClassifier
  • setIncludedEntityTypes has been renamed to setIncludedTypes
  • setExcludedEntityTypes has been renamed to setExcludedTypes

Bug fixes

Version 1.0.0-alpha02

February 7, 2019

androidx.textclassifier 1.0.0-alpha02 is released.

API changes

  • TextLinks.TextLink.getEntityType replaces TextLinks.TextLink.getEntity
  • TextLinks.TextLink.getEntityTypeCount replaces TextLinks.TextLink.getEntityCount
  • TextSelection.getEntityType replaces TextSelection.getEntity
  • TextSelection.getEntityTypeCount replaces `TextSelection.getEntityCount

Bug fixes

  • Fix a memory leak issue in AndroidX TextClassificationManager. (aosp/887354)
  • Floating Toolbar: Handle TextView position changes. (aosp/877713)

Version 1.0.0-alpha01

December 3, 2018

This is the first refactoring of TextClassifier to androidx. This release backports (android.view.textclassifier.TextClassifier)[/reference/android/view/textclassifier/TextClassifier] features, particularly Smart Linkify, back to API 14.