{"id":21886787,"url":"https://github.com/thecraftman/deploy-a-nlp-similarity-api-using-docker","last_synced_at":"2025-04-04T11:13:54.433Z","repository":{"id":85381280,"uuid":"200738752","full_name":"thecraftman/Deploy-a-NLP-Similarity-API-using-Docker","owner":"thecraftman","description":"Build a RESTFUL-API for Similarity Check using Natural Language Processing and generative AI and Docker Compose","archived":false,"fork":false,"pushed_at":"2025-01-26T07:08:23.000Z","size":10953,"stargazers_count":190,"open_issues_count":1,"forks_count":30,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T11:13:48.861Z","etag":null,"topics":["api-rest","docker","docker-compose","flask","natural-language","natural-language-processing","pymongo","python3","restful-api","spacy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecraftman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T22:43:23.000Z","updated_at":"2025-03-23T15:15:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"d38f968b-7033-4a14-9c91-806304dbe50b","html_url":"https://github.com/thecraftman/Deploy-a-NLP-Similarity-API-using-Docker","commit_stats":{"total_commits":242,"total_committers":3,"mean_commits":80.66666666666667,"dds":"0.012396694214875992","last_synced_commit":"b3cc1c249e3c10f0d89affc9485f2d25f0cb7af5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecraftman%2FDeploy-a-NLP-Similarity-API-using-Docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecraftman%2FDeploy-a-NLP-Similarity-API-using-Docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecraftman%2FDeploy-a-NLP-Similarity-API-using-Docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecraftman%2FDeploy-a-NLP-Similarity-API-using-Docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecraftman","download_url":"https://codeload.github.com/thecraftman/Deploy-a-NLP-Similarity-API-using-Docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-rest","docker","docker-compose","flask","natural-language","natural-language-processing","pymongo","python3","restful-api","spacy"],"created_at":"2024-11-28T11:07:20.817Z","updated_at":"2025-04-04T11:13:54.405Z","avatar_url":"https://github.com/thecraftman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RESTful API For Similarity Check Using Natural Language Processing and Docker Compose\n\n## INTRODUCTION\n\n- Build a Similarity check API using NLP, run and deploy using Docker \u0026 Docker-compose. \n\n-----------------\n\n### Documents similarity\nDocument similarity (or distance between documents) is a one of the central themes in Information Retrieval. How humans usually define how similar are documents? Usually documents treated as similar if they are semantically close and describe similar concepts. On other hand “similarity” can be used in context of duplicate detection. We will review several common approaches.\n\n![imageSimilarity](https://miro.medium.com/max/1838/1*l-BZLW3JUHd1MZbNq1MjQA.png)\n\n-----------------------\n\n#### OBJECTIVE\n\n`The objective of this API is to handle Similarity of text (PLAGIARISM CHECK) `\n\n## API ARCHITECTURE\n|RESOURCES |URL(PATH) |METHOD |PARAMETERS |STATUSCODE|\n|----------|-------|--------|--------------|----------|\n|Register a user | /register | POST | username, password | 200:OK,  301:INVALID USERNAME |\n|Detect Similarity of docs | /detect | POST | username, password , text1 \u0026 text2 |200:OK RETURN SIMILARITY ,   301:INVALID USERNAME,    302:INVALID PASSWORD,    303:OUT OF TOKENS\n|Refill | /refill | POST | username,  admin_pw,  refill_amount |  200:OK,  301:INVALID USERNAME , 304:INVALID ADMIN_PW\n\n------------------\n\n\n## REQUIREMENTS\n\n- [spacy.io](https://spacy.io/models/en) is  an open-source software library for advanced Natural Language Processing, written in the programming languages Python, it is very easy python processing module. \n\n**Download the spacy model from [here](https://github.com/explosion/spacy-models/releases//tag/en_core_web_sm-2.1.0)**\n\n- Flask framework, see how to install and run the flask framework [here](https://github.com/pallets/flask) , for more [details](https://www.fullstackpython.com/flask.html)\n\n- pymongo, PyMongo is a Python distribution containing tools for working with MongoDB download and install pymongo from [here](https://api.mongodb.com/python/current/)\n\n- [Docker](https://www.docker.com/)\n\n- Docker-compose.yml\n\n-----------------------\n\n## Contributing \n\n Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.\n \n -------------------\n\n## How can I thank you?\n\nWhy not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter, Hackernews or Destructoid ? Spread the word! \n\n\nThanks! Ore-Aruwaji Tola. \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecraftman%2Fdeploy-a-nlp-similarity-api-using-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecraftman%2Fdeploy-a-nlp-similarity-api-using-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecraftman%2Fdeploy-a-nlp-similarity-api-using-docker/lists"}