home.social

#levenshtein — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #levenshtein, aggregated by home.social.

fetched live
  1. I have not used my #functionalprogramming brain muscle for a while. Yesterday and today tried writing a #Levenshtein string distance function in GNU #guile . Looked up the naive version on wiki. That came easy. But then I decided, that I wanted an FP solution, but with caching/memoization ... I knew from past experience, that I would probably have to use continuations for that. #TheLittleSchemer strikes again.

    #programming #coding #scheme #algorithm

    [1/3]

  2. Levenshtein Word Distance in Python. This algorithm calculates the number of steps required to change one word into another and has various uses including spell checking suggestions.

    codedrome.substack.com/p/leven

    #python

    #pythonprogramming

    #algorithms

    #levenshtein

  3. Обучение модели токсификации текстов с помощью TorchTune, подробное руководство

    Приветствую, хабровчане! Сегодня пятница, поэтому предлагаю немного пошалить и поговорить о слегка необычном, но весьма забавном проекте обучения нейросетевой модели на базе LLaMA2 7B , которая умеет превращать невинные предложения на русском языке в чуть более "токсичные" их версии. Но обучать модель мы будем не абы как, а при помощи недавно вышедшего в свет проекта под названием TorchTune , так как надо ведь пробовать новые инструменты, иными словами, предлагаю соединить тему интересную с темой полезной. Так что пристегнитесь, будет весело и слегка токсично!

    habr.com/ru/articles/810473/

    #Torch #TorchTune #Detoxification #Toxification #llama 2 #levenshtein #llm #nlp #huggingface

  4. New Episode: hpr4026 :: Using NLP to get better answer options for language learning

    Hosted by thompsgj on 2024-01-08 is flagged as Clean and is released under a CC-BY-SA license.

    Tags: #levenshtein, #nlp, #languageLearning, #education.

    hackerpublicradio.org/eps/hpr4

  5. Third is Sindre Sorhus' small and fast Levenshtein distance calculator in JavaScript. I use it for a matcher, figuring out if a word is within a certain distance of a query, making fuzzy search possible. He also has created and still maintain a lot of other libraries I depend on.

    github.com/sindresorhus

    #dev #JavaScript #funding #oss #search #SearchEngine #Levenshtein

  6. Needed to do some fuzzy matches in #Laravel with a 5000+ row array to account for differently spelled company names across two APIs. Played with #Levenshtein, #SoundEx and #similar_text in #PHP. Found similar_text worked best by far for this perhaps. Ended up using array_walk to accomplish this with ease. Would love to hear others experiences in doing fuzzy matches between arrays.