Skip to content

A simple web service that returns word similarity by using Levenshtein Distance.

Notifications You must be signed in to change notification settings

emrahonder/Word-Similarity-Web-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Similarity Web Application

A user can view the frequency of a given word and any similar words in the target notebook entry.

Restful Service uses following Technologies:

  • Spring Boot 2.5
  • Swagger (OpenAPI v3)

Front-end

  • Spring Boot (Thymeleaf)
  • Bootstrap
  • JQuery

Run

build:

mvn clean install  

docker run :

docker build -f Dockerfile -t similarity . 
docker run -p 8080:8080 similarity  

Usage

Swagger

http://localhost:8080/documentation  

Back-end

This service has three endpoints:

GET: http://localhost:8080/similarity  

returns similarity object which has frequency and similar words list.

GET: http://localhost:8080/similarwords  

returns just similar words list.

GET: http://localhost:8080//frequency  

returns just frequency

Front-end

http://localhost:8080  

image

Further

I have spent to build this application appr. 3 hours. If I would have more time, I would like to

  • instead of a monolitic application, divide these as BE and FE project and build FE project with Vue.JS etc.
  • add more validations in BE and FE projects
  • update logging mechanism to write to the file

About

A simple web service that returns word similarity by using Levenshtein Distance.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published