stemskv

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

stems_db package operates on a key-value store that contains stems and canonical forms that correspond to these stems. It create such a key-value store if necessary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectKeyVal

func ConnectKeyVal(path string) *badger.DB

ConnectKeyVal connects to a key-value store

func GetValue

func GetValue(kv *badger.DB, key string) []byte

GetValue takes a string and a connection to a key-value store and checks if there is such stem key. It returns a list of canonicals that correspond to that key.

func NewStemsKV

func NewStemsKV(path string, db *sql.DB)

NewStemsKV creates key-value store for stems and their canonical forms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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