Giter Site home page Giter Site logo

shubham0204 / spam_classification_android_demo Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 5.0 293 KB

An Android Project to demonstrate the use of a TensorFlow Lite model to classify spam messages.

License: Apache License 2.0

Kotlin 100.00%
machine-learning android-application android kotlin-android spam-classification tensorflow-lite

spam_classification_android_demo's Introduction

Spam Classification Android Demo

An Android Project to demonstrate the use of a TensorFlow Lite model to classify spam messages.

Updates

January 2024

  • Replaced XML-based UI with Jetpack Compose
  • Set compileSdk=34
  • Async inference in Classifier.kt with Coroutines
  • Added version catalogs
  • Replaced Groovy build scripts with Kotlin build scripts

February 2021

  • Improved Classifier.kt by removing unwanted methods.
  • Added documentation for classes and methods in Classifier.kt and MainActivity.kt.
  • Replaced AsyncTask with Kotlin Coroutines.

Feedback

You can open an issue here or start a new Discussion. You may consider filling out this form.

spam_classification_android_demo's People

Contributors

shubham0204 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

spam_classification_android_demo's Issues

Spam_Classification_Android_Demo Crashed

Hi, I trained the model using a dataset of Russian sms messages with an accuracy of 80 percent. I am trying to build a project in Android Studio. I install it on my phone via APK Installer, but everything is unsuccessful. Crashes when the Classify button is pressed. I really liked your idea and I wanted to do something similar for SMS messages in Russian. Please tell me can you help me? I have Python code, only build problem in Android Studio.

app is Crashed

hi bro how are u
app is Crashed

here

fun padSequence(
    sequence : IntArray
) : IntArray {
    val paddedSequence = IntArray( 120 ){ 0 }
    sequence.forEachIndexed { index, i ->
        paddedSequence[i] = index
    }
    return paddedSequence
}

java index out of bounds exception

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.