Documentation ¶
Overview ¶
Package pos model data The data from https://github.com/fxsjy/jieba
Index ¶
- type Dict
- type SegPos
- type Segmenter
- func (seg *Segmenter) Cut(text string, hmm ...bool) (result []gse.SegPos)
- func (seg *Segmenter) LoadDict(fileName ...string) error
- func (seg *Segmenter) Trim(se []gse.SegPos) (re []gse.SegPos)
- func (seg *Segmenter) TrimPunct(se []gse.SegPos) (re []gse.SegPos)
- func (seg *Segmenter) TrimWithPos(se []gse.SegPos, pos ...string) (re []gse.SegPos)
- func (seg *Segmenter) WithGse(segs gse.Segmenter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dict ¶
Dict type a dictionary for the word segmentation.
func (*Dict) RemoveToken ¶
RemoveToken remove the token in the dict
type Segmenter ¶
type Segmenter struct {
// contains filtered or unexported fields
}
Segmenter is a segmentation struct
func (*Segmenter) TrimWithPos ¶
TrimWithPos trim some pos
Click to show internal directories.
Click to hide internal directories.