Documentation ¶
Index ¶
- type Conf
- type Segmenter
- func (s *Segmenter) AddStop(text string)
- func (s *Segmenter) AddToken(text string, freq float64, pos ...string)
- func (s *Segmenter) Cut(str string, hmm ...bool) []string
- func (s *Segmenter) CutAll(str string) []string
- func (s *Segmenter) CutHtml(str string) string
- func (s *Segmenter) CutSearch(str string, hmm ...bool) []string
- func (s *Segmenter) CutSearchStr(str string) string
- func (s *Segmenter) CutSearchTrimStr(str string) string
- func (s *Segmenter) CutStr(str []string) string
- func (s *Segmenter) CutTrim(str string) []string
- func (s *Segmenter) CutTrimStr(str string) string
- func (s *Segmenter) CutUrl(str string, num ...bool) string
- func (s *Segmenter) Cuts(str string) string
- func (s *Segmenter) Dict() *gse.Dictionary
- func (s *Segmenter) InitCong(conf Conf)
- func (s *Segmenter) InitLoad() (err error)
- func (s *Segmenter) IsStop(text string) bool
- func (s *Segmenter) Load(files ...string) error
- func (s *Segmenter) LoadStop(files ...string) error
- func (s *Segmenter) Pos(str string, hmm ...bool) (pos []gse.SegPos)
- func (s *Segmenter) RemoveToken(text string)
- func (s *Segmenter) Trim(str []string) []string
- func (s *Segmenter) WithGse()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Segmenter ¶
type Segmenter struct {
// contains filtered or unexported fields
}
func (*Segmenter) CutSearchStr ¶
func (*Segmenter) CutSearchTrimStr ¶
func (*Segmenter) CutTrimStr ¶
func (*Segmenter) Dict ¶
func (s *Segmenter) Dict() *gse.Dictionary
func (*Segmenter) RemoveToken ¶
Click to show internal directories.
Click to hide internal directories.