filter

package
v0.0.0-...-9c66339 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomFilter

type CustomFilter func(words []string, tags []string) bool

CustomFilter compiled as a plug-in can be used to filter out specific n-grams from a created index (out output file).

func LoadCustomFilter

func LoadCustomFilter(libPath string, fn string) CustomFilter

LoadCustomFilter loads a compiled .so plugin from a defined path and selects a function identified by fn. In case libPath does not point to an existing file, the function handles it as a path suffix and tries other locations (working directory, /usr/local/lib/gloomy).

Jump to

Keyboard shortcuts

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