common

package
v0.0.0-...-aa82ca8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FileType2FileTypeName 文件类型到文件类型名之间的映射
	FileType2FileTypeName = map[pb.DocType]string{
		pb.DocType_HTMLDoc: "html",
		pb.DocType_TextDoc: "text",
	}

	// FileType2FileSuffix 文件类型到文件后缀之间的映射
	FileType2FileSuffix = map[pb.DocType]string{
		pb.DocType_HTMLDoc: "html",
		pb.DocType_TextDoc: "txt",
	}
)

Functions

This section is empty.

Types

type ConcordanceChannel

type ConcordanceChannel (chan *ConcordanceWrapper)

ConcordanceChannel 用于传输ConcordanceWrapper

type ConcordanceWrapper

type ConcordanceWrapper struct {
	DocID       string
	Concordance map[string]uint64
}

ConcordanceWrapper 封装concordance

type File

type File struct {
	Type pb.DocType
	Name string
	Body []string
}

File 通用文件定义

type LanguageType

type LanguageType int

LanguageType 语种类型

const (
	// LanguageTypeEnglish 英语语种类型
	LanguageTypeEnglish LanguageType = 0
	// LanguageTypeChinsese 中文语种类型
	LanguageTypeChinsese LanguageType = 1
)

type PacketChannel

type PacketChannel (chan *pb.Packet)

PacketChannel 用于传输pb.Packet

type WordsWrapper

type WordsWrapper struct {
	Words []string
}

WordsWrapper 封装词袋

Jump to

Keyboard shortcuts

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