Skip to content

hjr3/selecta-score-rs

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Selecta Scoring Algorithm

A more performant version of the selecta scoring algorithm.

Build Status Crates.io

FFI

This library includes a C interface to make it easier to use in other langauges. As an example, there is a fork that demonstrates how to include this library in Ruby code.

On Mac OS X:

require "fiddle"
require "fiddle/import"

module Score
  extend Fiddle::Importer

  dlload "/path/to/libselecta_score.dylib"

  extern "double selecta_score(char *, char *)"
end

score = Score::selecta_score("README.md", "em")

puts score

Check out rust-ffi-examples for details on how Rust FFI works.

Build

cargo build

Release

cargo build --release

Test

cargo test

Bench

Rust nightly is required to run benchmarks. Comment out the lines in tests/. Then run:

cargo bench

About

A more performant version of the selecta scoring algorithm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages