GithubHelp home page GithubHelp logo

sayamalt / text-similarity-quantifier Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 8.24 MB

Successfully developed a machine learning model for computing the similarity score between two text paragraphs taken as input from a webpage.

Jupyter Notebook 95.31% CSS 0.74% HTML 0.92% Python 3.03%
bag-of-words countvectorizer flask machine-learning nlp pandas python text-preprocessing tfidf cosine-similarity

text-similarity-quantifier's Introduction

Text-Similarity-Quantifier

Objective

Establish an algorithm that can quantify the degree of similarity between the two text documents based on semantic similarity.

Semantic Textual Similarity (STS) assesses the degree to which two sentences are semantically equivalent to each other.

  • 1 means highly similar
  • 0 means highly dissimilar

Technologies Used

  • Python
    1. Libraries Used:
    2. Numpy
    3. Pandas
    4. Seaborn
    5. Matplotlib.pyplot
    6. Joblib
    7. warnings
    8. string
    9. Gensim Downloader
    10. Sklearn
    11. nltk
    12. math
    13. json
    14. requests
  • Flask
  • Machine Learning
  • Natural Language Processing

API Endpoint

The final algorithm should be exposed as a Server API Endpoint. In order to test this API, make sure you hit a request to the server to get the result as a response to the API. The request-response body should be in the following format:

Request body: {“text1”: ”nuclear body seeks new tech …....”, ”text2”: ”terror suspects face arrest ……”} Response body: {“similarity score”: 0.2 }

Note: “text1”, “text2”, and “similarity score” keys should be kept as it is, without any change.

Important aspect to consider

The given dataset does not contain any label. Therefore, can be treated as an unsupervised learning problem. However, this does not imply that supervised techniques/algorithms are not applicable. The candidate is free to use any technique.

text-similarity-quantifier's People

Contributors

sayamalt avatar

Watchers

 avatar

Forkers

109rjsaini

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.