Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sayamalt/text-similarity-quantifier

Successfully developed a machine learning model for computing the similarity score between two text paragraphs taken as input from a webpage.
https://github.com/sayamalt/text-similarity-quantifier

bag-of-words cosine-similarity cosine-similarity-scores countvectorizer flask machine-learning nlp pandas python text-preprocessing tfidf

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.