Giter Club home page Giter Club logo

sv4j's Introduction

Spam validation for Java (sv4j)

Installing

Jar: link

Examples

public class MessageValidatorTest {

    private MessageValidator mv = new MessageValidator();

    public static void main(String... args){
        //Simple validation
        System.out.println(mv.isSpam("We would like to offer cheapest Viagra in the world!"));
        System.out.println(mv.isSpam("We would like to offer you an internship program for students. We have the pleasure of having many of you from Universities from all over the world as our interns. The Little Match Girl project has been in operation for 16 years. Our main idea is to raise funds for charity purposes (to help children living in poverty) by promoting the sale of Fairy Matches. This may take different forms: from simple activities where children pack the shopping for customers at a supermarket, and offer matches to them, to major events like shows, performances, spring-break and summer vacations. It is an excellent opportunity to gain and improve your experience in working with children from elementary and high schools. Our internship program is intended mainly for students of management, marketing, sociology, pedagogy, law, administration, and physical education university departments as well as for those who are planning to work with children in the future.").isSpam());
        System.out.println(mv.isSpam("This is the 2nd time we have tried 2 contact u. U have won the £750 Pound prize. 2 claim is easy, call 087187272008 NOW1!").isSpam());

        //Detail validation
        NeuralNetOutput nno = mv.getOutputFor("We would like to offer cheapest Viagra in the world!");
        nno.printValues()
    }
}

Training resources

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details

sv4j's People

Contributors

erykdev avatar

Stargazers

 avatar

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.