GithubHelp home page GithubHelp logo

transformer_based_ir-deployment's Introduction

Transformer Based IR-Deployment

Context

This platform recieves a text as input and returns a list of offers that are more relevant to that text performing an Information Retrieval algorithm that incudes a multi class text classification transformer based model, TF-IDF, cosine similarity, stemming and lemmatization, "fuzzy" similarity and data augmentation through synonym generation. The response also includes the 'cosine_similarity' and 'fuzzy_score' of each offer, along with a 'LOG_LIST' list of actions performed by the platform.

Example:

input : {"text" : "sams club membership"}
output : {"offer_list":[{"concept":"Spend $50 on a Full-Priced new Club Membership","cosine_similarity":0.17167737713678186,"fuzzy_score":0},{"concept":"George's Farmers Market Chicken Wings, at Sam's Club","cosine_similarity":0.07507578805263351,"fuzzy_score":0},{"concept":"Tyson Products, select varieties, spend $20 at Sam's Club","cosine_similarity":0.06966444274341704,"fuzzy_score":0},{"concept":"Spend $110 on a Full-Priced new Plus Membership and receive an ADDITIONAL 10,000 points","cosine_similarity":0.037681749600967825,"fuzzy_score":0}], "LOG_LIST":["Input text received was "sams club membership"","Input categorized by QueryTypeDetection: 0 with confidence: 0.9963080883026123","Similarity matches with retailers: [{'concept': 'SAMS CLUB', 'cosine_similarity': 0.6725889529793223, 'fuzzy_score': 0}]"]}

Testing

curl -X POST http://172.174.142.5:5000/get_offers -H "Content-Type: application/json" -d '{"text":"sams club membership"}'

All specifications and context of this service can be found in this repository.

transformer_based_ir-deployment's People

Contributors

federico2001 avatar

Stargazers

 avatar

Watchers

 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.