gnmatcher

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 6 Imported by: 2

README

gnmatcher

gnmatcher provides fast stemming, fuzzy matching altorithms for matching scientific names

Documentation

Index

Constants

View Source
const MaxNamesNumber = 10_000

MaxMaxNamesNumber is the upper limit of the number of name-strings the MatchNames function can process. If the number is higher, the list of name-strings will be truncated.

Variables

View Source
var (
	// Version of the gnmatcher
	Version = "v0.2.0"
	// Build timestamp
	Build = "n/a"
)

Functions

This section is empty.

Types

type GNMatcher

type GNMatcher struct {
	Matcher matcher.Matcher
}

GNMatcher contains high level methods for scientific name matching.

func NewGNMatcher

func NewGNMatcher(m matcher.Matcher) GNMatcher

NewGNMatcher is a constructor for GNMatcher instance

func (GNMatcher) MatchNames

func (gnm GNMatcher) MatchNames(names []string) []*protob.Result

MatchNames takes a list of name-strings and matches them against known by names aggregated in gnames database.

Directories

Path Synopsis
package bloom creates and serves bloom filters for canonical names, and names of viruses.
package bloom creates and serves bloom filters for canonical names, and names of viruses.
Package dbase is an interface to PostgreSQL database that contains Global Names index data
Package dbase is an interface to PostgreSQL database that contains Global Names index data
Package fuzzy includes a Levenshtein automaton as well as a traditional implementation to calculate Levenshtein Distance.
Package fuzzy includes a Levenshtein automaton as well as a traditional implementation to calculate Levenshtein Distance.
cmd
The purpose of this script is to find out how fast algorithms can go through a list of 100_000 names.
The purpose of this script is to find out how fast algorithms can go through a list of 100_000 names.
stems_db package operates on a key-value store that contains stems and canonical forms that correspond to these stems.
stems_db package operates on a key-value store that contains stems and canonical forms that correspond to these stems.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL