Giter Club home page Giter Club logo

editspace's Introduction

editspace

Library that implements a Levenstein trie to calculate distance between sequences.
Provides two binaries.

correct takes two arguments,
a maximum edit distance and
a list of known sequences.
It then corrects sequences on the first field of stdin
to the closest sequence in the list of known sequences
(anything in subsequent fields is simply echoed).
If a match can't be found, or two sequences in the list are equally close,
correct prints the corresponding line to stderr
with an additional field explaining the reason for exclusion.
The list of known sequences can have two columns,
in which case, the word on the first column
is replaced by the word on the second column.

cluster takes three arguments,
a maximum edit distance,
a minimum count required to consider a sequence a viable cluster, and
an expected maximum fraction for a sequence to be considered an error.
It counts sequences on stdin,
then runs through them again,
in order of highest to lowest count,
and prints only the sequences that are at least
the maximum edit distance different from any sequences with more than
the maximum fraction expected for error sequences.
Any rejected sequences are printed,
with their counts,
and a reason for exclusion,
on stderr.

editspace's People

Contributors

jireva avatar

Watchers

James Cloos avatar  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.