ngram

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 0 Imported by: 1

README

koron-go/ngram

PkgGoDev Actions/Go Go Report Card

Documentation

Overview

Package ngram provides N-gram index.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index map[string]int

Index provides N-gram index. Its key is keyword in N chars, and value is count of keyword.

func New

func New(n int, s string) Index

New creates N-gram index on given string.

func (Index) Add

func (x Index) Add(n int, s string)

Add adds N-chars (n) keywords from s.

Jump to

Keyboard shortcuts

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