smq

package
v0.0.0-...-575b77a Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NUM_CPU = runtime.NumCPU()

逻辑 CPU 数量(线程数)

Functions

func NewFeeling

func NewFeeling(target *result.MatchRes, spacePref string) *feel

Types

type Config

type Config struct {
	Merge bool // 合并同一码表的多个文章结果
	Clean bool // 只统计词库中的词条
	Split bool // 统计分词结果
	Stat  bool // 统计每个词条出现的次数
	// contains filtered or unexported fields
}

func (*Config) AddDict

func (c *Config) AddDict(dictList ...*data.Dict)

func (*Config) AddText

func (c *Config) AddText(textList ...*data.Text)

func (*Config) OnBeforeRace

func (c *Config) OnBeforeRace()

只转换码表时可以调用,正常赛码不需要

func (*Config) Race

func (c *Config) Race() [][]*result.Result

func (*Config) Reset

func (c *Config) Reset()

Jump to

Keyboard shortcuts

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