Documentation ¶
Index ¶
- func Arbitrate(termLink *QuickSortTermLink, smart bool) map[int]*TermPath
- func LoadLines(filepath string, lineHandler func(string))
- type Comparable
- type Node
- type QuickSortTermLink
- func (qstl *QuickSortTermLink) Add(term *Term) bool
- func (qstl *QuickSortTermLink) Head() *TermNode
- func (qstl *QuickSortTermLink) IsEmpty() bool
- func (qstl *QuickSortTermLink) PeekFirst() *Term
- func (qstl *QuickSortTermLink) PeekLast() *Term
- func (qstl *QuickSortTermLink) PollFirst() *Term
- func (qstl *QuickSortTermLink) PollLast() *Term
- func (qstl *QuickSortTermLink) Size() int
- type Segmenter
- type Term
- func (term *Term) Append(other *Term) bool
- func (term *Term) BeginPosition() int
- func (term *Term) CompareTo(o interface{}) int
- func (term *Term) EndPosition() int
- func (term *Term) Equals(other *Term) bool
- func (term *Term) Length() int
- func (term *Term) Pos() string
- func (term *Term) SetPos(pos string)
- func (term *Term) SetText(text string)
- func (term *Term) Text() string
- type TermList
- type TermNode
- type TermPath
- func (path *TermPath) AddCrossTerm(term *Term) bool
- func (path *TermPath) AddNotCrossTerm(term *Term) bool
- func (path *TermPath) Begin() int
- func (path *TermPath) CompareTo(o interface{}) int
- func (path *TermPath) Copy() *TermPath
- func (path *TermPath) End() int
- func (path *TermPath) HasCrossWith(term *Term) bool
- func (path *TermPath) Length() int
- func (path *TermPath) RemoveTail() *Term
- func (path *TermPath) TermLengthWeight() int
- func (path *TermPath) TermPositionWeight() int
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Comparable ¶
type Comparable interface {
CompareTo(interface{}) int
}
type QuickSortTermLink ¶
type QuickSortTermLink struct {
// contains filtered or unexported fields
}
func (*QuickSortTermLink) Add ¶
func (qstl *QuickSortTermLink) Add(term *Term) bool
func (*QuickSortTermLink) Head ¶
func (qstl *QuickSortTermLink) Head() *TermNode
func (*QuickSortTermLink) IsEmpty ¶
func (qstl *QuickSortTermLink) IsEmpty() bool
func (*QuickSortTermLink) PeekFirst ¶
func (qstl *QuickSortTermLink) PeekFirst() *Term
func (*QuickSortTermLink) PeekLast ¶
func (qstl *QuickSortTermLink) PeekLast() *Term
func (*QuickSortTermLink) PollFirst ¶
func (qstl *QuickSortTermLink) PollFirst() *Term
func (*QuickSortTermLink) PollLast ¶
func (qstl *QuickSortTermLink) PollLast() *Term
func (*QuickSortTermLink) Size ¶
func (qstl *QuickSortTermLink) Size() int
type Segmenter ¶
type Segmenter struct {
// contains filtered or unexported fields
}
func NewSegmenter ¶
func NewSegmenter(dictionary *dict.Dictionary) *Segmenter
type Term ¶
type Term struct {
// contains filtered or unexported fields
}
func (*Term) BeginPosition ¶
func (*Term) EndPosition ¶
type TermPath ¶
type TermPath struct { QuickSortTermLink // contains filtered or unexported fields }
func NewTermPath ¶
func NewTermPath() *TermPath
func (*TermPath) AddCrossTerm ¶
func (*TermPath) AddNotCrossTerm ¶
func (*TermPath) HasCrossWith ¶
func (*TermPath) RemoveTail ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.