Code Monkey home page Code Monkey logo

rust-spelling-checker's Introduction

Developed a sophisticated spelling checker in Rust, integrating advanced algorithms for unparalleled accuracy and efficiency.

Key Features:

  • Levenshtein & Wagner-Fischer Algorithms: Utilizes these algorithms for precise error detection and distance calculation.
  • CUDA Integration: Leverages CUDA for accelerated computation, significantly enhancing performance.
  • Rayon for Parallel Computing: Implements Rayon, enabling efficient parallel data processing.
  • NLP for Context Awareness: Employs natural language processing to understand context, improving the accuracy of correction suggestions.
  • Soundex Algorithm: Uses Soundex for phonetic comparisons, catching errors missed by traditional spell checkers.

This project is a showcase of my ability to blend multiple technologies โ€” from CUDA and Rayon for performance to NLP and Soundex for accuracy โ€” in creating a state-of-the-art spelling checker.

** Its a work in progress

current performance: currently working on a cpu: takes in a 1.5M dataset of words finds the issues from a 650k words dictionary in about 35ms and gives 3 predictions for each error word in about 22 seconds for 4000 unique corrections which are duplicated many times over.

trying to figure out a way to make it work on cuda

Run command: run --package rust-spell-checker --bin rust-spell-checker --release

env variables: RUST_LOG=info

$env:CUDA_ROOT = "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.3" clang++ -O3 -std=c++14 --cuda-path=${env:CUDA_ROOT} --cuda-gpu-arch=sm_86 -L/usr/local/cuda/lib64 -lcudart_static -ldl -lrt -pthread suggest_corrections_kernel.cu -o suggest_corrections_kernel.ptx

$env:Path += ";C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\bin\Hostx64\x64"

rust-spelling-checker's People

Contributors

fiend-star-666 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.