Giter Site home page Giter Site logo

verify_term's Introduction

Similarity Checker Documentation

Introduction The Similarity Checker is a Python project that analyzes a string to check if it has a certain similarity with a predefined list of terms. The similarity is measured using the Levenshtein distance algorithm. If the similarity is above a specified threshold, the term is considered similar.

Ensure you have Python installed on your system. You can download it from python.org.

Install Required Packages Install the python-Levenshtein package using pip:

    pip install python-Levenshtein

Usage Here is the main module used to check for similarity:

from terms import reference_terms
from term_checker import TermChecker

input_term = str(input("Type a term: "))
similarity_limit = 0.8

checker = TermChecker(reference_terms)
results = checker.verify_similarity(input_term)

if results:
    #do something
    for term, similarity in results:
        if (similarity < youLimit):
            #do something
        else:
            #do something
else:
    #do something
  • input_term: The input string to be checked.
  • terms: A list of reference terms to compare against.
  • similarity_limit: The similarity threshold (default is 0.8).

References python-Levenshtein: Python extension for computing string edit distances and similarities.

verify_term's People

Contributors

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