SYMBOL INDEX (190 symbols across 36 files) FILE: analyse/example_test.go function Example_extractTags (line 9) | func Example_extractTags() { function Example_textRank (line 24) | func Example_textRank() { FILE: analyse/idf.go type Idf (line 12) | type Idf struct method AddToken (line 20) | func (i *Idf) AddToken(token dictionary.Token) { method Load (line 30) | func (i *Idf) Load(ch <-chan dictionary.Token) { method loadDictionary (line 41) | func (i *Idf) loadDictionary(fileName string) error { method Frequency (line 46) | func (i *Idf) Frequency(key string) (float64, bool) { function NewIdf (line 54) | func NewIdf() *Idf { FILE: analyse/stopwords.go type StopWord (line 45) | type StopWord struct method AddToken (line 51) | func (s *StopWord) AddToken(token dictionary.Token) { method IsStopWord (line 65) | func (s *StopWord) IsStopWord(word string) bool { method Load (line 73) | func (s *StopWord) Load(ch <-chan dictionary.Token) { method loadDictionary (line 81) | func (s *StopWord) loadDictionary(fileName string) error { function NewStopWord (line 58) | func NewStopWord() *StopWord { FILE: analyse/tag_extracker.go type Segment (line 13) | type Segment struct method Text (line 19) | func (s Segment) Text() string { method Weight (line 24) | func (s Segment) Weight() float64 { type Segments (line 29) | type Segments method Len (line 31) | func (ss Segments) Len() int { method Less (line 35) | func (ss Segments) Less(i, j int) bool { method Swap (line 43) | func (ss Segments) Swap(i, j int) { type TagExtracter (line 48) | type TagExtracter struct method LoadDictionary (line 55) | func (t *TagExtracter) LoadDictionary(fileName string) error { method LoadIdf (line 62) | func (t *TagExtracter) LoadIdf(fileName string) error { method LoadStopWords (line 68) | func (t *TagExtracter) LoadStopWords(fileName string) error { method ExtractTags (line 74) | func (t *TagExtracter) ExtractTags(sentence string, topK int) (tags Se... FILE: analyse/tag_extracker_test.go function TestExtractTags (line 257) | func TestExtractTags(t *testing.T) { function TestExtratTagsWithWeight (line 275) | func TestExtratTagsWithWeight(t *testing.T) { function TestExtractTagsWithStopWordsFile (line 288) | func TestExtractTagsWithStopWordsFile(t *testing.T) { FILE: analyse/textrank.go constant dampingFactor (line 10) | dampingFactor = 0.85 type edge (line 16) | type edge struct type edges (line 22) | type edges method Len (line 24) | func (es edges) Len() int { method Less (line 28) | func (es edges) Less(i, j int) bool { method Swap (line 32) | func (es edges) Swap(i, j int) { type undirectWeightedGraph (line 36) | type undirectWeightedGraph struct method addEdge (line 48) | func (u *undirectWeightedGraph) addEdge(start, end string, weight floa... method rank (line 64) | func (u *undirectWeightedGraph) rank() Segments { function newUndirectWeightedGraph (line 41) | func newUndirectWeightedGraph() *undirectWeightedGraph { type TextRanker (line 157) | type TextRanker struct method TextRankWithPOS (line 114) | func (t *TextRanker) TextRankWithPOS(sentence string, topK int, allowP... method TextRank (line 152) | func (t *TextRanker) TextRank(sentence string, topK int) Segments { method LoadDictionary (line 162) | func (t *TextRanker) LoadDictionary(fileName string) error { FILE: analyse/textrank_test.go function TestTextRank (line 25) | func TestTextRank(t *testing.T) { FILE: dictionary.go type Dictionary (line 11) | type Dictionary struct method Load (line 18) | func (d *Dictionary) Load(ch <-chan dictionary.Token) { method AddToken (line 28) | func (d *Dictionary) AddToken(token dictionary.Token) { method addToken (line 35) | func (d *Dictionary) addToken(token dictionary.Token) { method updateLogTotal (line 48) | func (d *Dictionary) updateLogTotal() { method Frequency (line 53) | func (d *Dictionary) Frequency(key string) (float64, bool) { method loadDictionary (line 60) | func (d *Dictionary) loadDictionary(fileName string) error { FILE: dictionary/dictionary.go type DictLoader (line 15) | type DictLoader interface function loadDictionary (line 20) | func loadDictionary(file *os.File) (<-chan Token, <-chan error) { function LoadDictionary (line 57) | func LoadDictionary(dl DictLoader, fileName string) error { function dictPath (line 74) | func dictPath(dictFileName string) (string, error) { FILE: dictionary/dictionary_test.go type Dict (line 8) | type Dict struct method Load (line 14) | func (d *Dict) Load(ch <-chan Token) { method AddToken (line 25) | func (d *Dict) AddToken(token Token) { function TestLoadDictionary (line 34) | func TestLoadDictionary(t *testing.T) { function TestAddToken (line 49) | func TestAddToken(t *testing.T) { FILE: dictionary/token.go type Token (line 4) | type Token struct method Text (line 11) | func (t Token) Text() string { method Frequency (line 16) | func (t Token) Frequency() float64 { method Pos (line 21) | func (t Token) Pos() string { function NewToken (line 26) | func NewToken(text string, frequency float64, pos string) Token { FILE: example_parallel_cut_test.go type line (line 15) | type line struct function worker (line 27) | func worker() { function Example_parallelCut (line 39) | func Example_parallelCut() { FILE: example_test.go function Example (line 9) | func Example() { function Example_suggestFrequency (line 38) | func Example_suggestFrequency() { function Example_loadUserDictionary (line 92) | func Example_loadUserDictionary() { FILE: finalseg/finalseg.go function cutHan (line 13) | func cutHan(sentence string) chan string { function Cut (line 42) | func Cut(sentence string) chan string { FILE: finalseg/finalseg_test.go function chanToArray (line 8) | func chanToArray(ch chan string) []string { function TestViterbi (line 16) | func TestViterbi(t *testing.T) { function TestCutHan (line 30) | func TestCutHan(t *testing.T) { function TestCut (line 47) | func TestCut(t *testing.T) { FILE: finalseg/prob_emit.go function init (line 5) | func init() { FILE: finalseg/prob_trans.go function init (line 5) | func init() { FILE: finalseg/viterbi.go constant minFloat (line 8) | minFloat = -3.14e100 function init (line 15) | func init() { type probState (line 26) | type probState struct method String (line 31) | func (p probState) String() string { type probStates (line 35) | type probStates method Len (line 37) | func (ps probStates) Len() int { method Less (line 41) | func (ps probStates) Less(i, j int) bool { method Swap (line 48) | func (ps probStates) Swap(i, j int) { function viterbi (line 52) | func viterbi(obs []rune, states []byte) (float64, []byte) { FILE: jieba.go type Segmenter (line 23) | type Segmenter struct method Frequency (line 28) | func (seg *Segmenter) Frequency(word string) (float64, bool) { method AddWord (line 33) | func (seg *Segmenter) AddWord(word string, frequency float64) { method DeleteWord (line 38) | func (seg *Segmenter) DeleteWord(word string) { method SuggestFrequency (line 56) | func (seg *Segmenter) SuggestFrequency(words ...string) float64 { method LoadDictionary (line 96) | func (seg *Segmenter) LoadDictionary(fileName string) error { method LoadUserDictionary (line 104) | func (seg *Segmenter) LoadUserDictionary(fileName string) error { method dag (line 108) | func (seg *Segmenter) dag(runes []rune) map[int][]int { method calc (line 143) | func (seg *Segmenter) calc(runes []rune) map[int]route { method cutDAG (line 170) | func (seg *Segmenter) cutDAG(sentence string) <-chan string { method cutDAGNoHMM (line 227) | func (seg *Segmenter) cutDAGNoHMM(sentence string) <-chan string { method Cut (line 264) | func (seg *Segmenter) Cut(sentence string, hmm bool) <-chan string { method cutAll (line 299) | func (seg *Segmenter) cutAll(sentence string) <-chan string { method CutAll (line 332) | func (seg *Segmenter) CutAll(sentence string) <-chan string { method CutForSearch (line 358) | func (seg *Segmenter) CutForSearch(sentence string, hmm bool) <-chan s... type route (line 138) | type route struct type cutFunc (line 168) | type cutFunc FILE: jieba_test.go function init (line 618) | func init() { function chanToArray (line 622) | func chanToArray(ch <-chan string) []string { function TestCutDAG (line 630) | func TestCutDAG(t *testing.T) { function TestCutDAGNoHmm (line 637) | func TestCutDAGNoHmm(t *testing.T) { function TestDefaultCut (line 644) | func TestDefaultCut(t *testing.T) { function TestCutAll (line 662) | func TestCutAll(t *testing.T) { function TestDefaultCutNoHMM (line 680) | func TestDefaultCutNoHMM(t *testing.T) { function TestCutForSearch (line 696) | func TestCutForSearch(t *testing.T) { function TestLoadDictionary (line 724) | func TestLoadDictionary(t *testing.T) { function TestLoadUserDictionary (line 742) | func TestLoadUserDictionary(t *testing.T) { function BenchmarkCutNoHMM (line 785) | func BenchmarkCutNoHMM(b *testing.B) { function BenchmarkCut (line 793) | func BenchmarkCut(b *testing.B) { function BenchmarkCutAll (line 801) | func BenchmarkCutAll(b *testing.B) { function BenchmarkCutForSearchNoHMM (line 809) | func BenchmarkCutForSearchNoHMM(b *testing.B) { function BenchmarkCutForSearch (line 817) | func BenchmarkCutForSearch(b *testing.B) { FILE: posseg/char_state_tab.go type tag (line 5) | type tag method position (line 7) | func (t tag) position() string { method pos (line 22) | func (t tag) pos() string { function newTag (line 26) | func newTag(position, pos string) (tag, error) { type charStateTabMap (line 47) | type charStateTabMap method get (line 49) | func (m charStateTabMap) get(key rune) []uint16 { FILE: posseg/char_state_tab_test.go function TestGet (line 7) | func TestGet(t *testing.T) { FILE: posseg/dictionary.go type Dictionary (line 11) | type Dictionary struct method Load (line 19) | func (d *Dictionary) Load(ch <-chan dictionary.Token) { method AddToken (line 29) | func (d *Dictionary) AddToken(token dictionary.Token) { method addToken (line 36) | func (d *Dictionary) addToken(token dictionary.Token) { method updateLogTotal (line 52) | func (d *Dictionary) updateLogTotal() { method Frequency (line 57) | func (d *Dictionary) Frequency(key string) (float64, bool) { method Pos (line 65) | func (d *Dictionary) Pos(key string) (string, bool) { method loadDictionary (line 72) | func (d *Dictionary) loadDictionary(fileName string) error { FILE: posseg/example_test.go function Example (line 9) | func Example() { FILE: posseg/posseg.go type Segment (line 22) | type Segment struct method Text (line 27) | func (s Segment) Text() string { method Pos (line 32) | func (s Segment) Pos() string { type Segmenter (line 37) | type Segmenter struct method LoadDictionary (line 43) | func (seg *Segmenter) LoadDictionary(fileName string) error { method LoadUserDictionary (line 51) | func (seg *Segmenter) LoadUserDictionary(fileName string) error { method cutDetailInternal (line 55) | func (seg *Segmenter) cutDetailInternal(sentence string) <-chan Segment { method cutDetail (line 84) | func (seg *Segmenter) cutDetail(sentence string) <-chan Segment { method dag (line 113) | func (seg *Segmenter) dag(runes []rune) map[int][]int { method calc (line 148) | func (seg *Segmenter) calc(runes []rune) map[int]route { method cutDAG (line 175) | func (seg *Segmenter) cutDAG(sentence string) <-chan Segment { method cutDAGNoHMM (line 259) | func (seg *Segmenter) cutDAGNoHMM(sentence string) <-chan Segment { method Cut (line 300) | func (seg *Segmenter) Cut(sentence string, hmm bool) <-chan Segment { type route (line 143) | type route struct type cutFunc (line 173) | type cutFunc FILE: posseg/posseg_test.go function init (line 271) | func init() { function chanToArray (line 275) | func chanToArray(ch <-chan Segment) []Segment { function TestCut (line 283) | func TestCut(t *testing.T) { function TestBug132 (line 311) | func TestBug132(t *testing.T) { function TestBug137 (line 331) | func TestBug137(t *testing.T) { function TestUserDict (line 359) | func TestUserDict(t *testing.T) { function BenchmarkCutNoHMM (line 414) | func BenchmarkCutNoHMM(b *testing.B) { function BenchmarkCut (line 422) | func BenchmarkCut(b *testing.B) { FILE: posseg/prob_emit.go constant minFloat (line 3) | minFloat = -3.14e100 type runeFloatMap (line 5) | type runeFloatMap method get (line 7) | func (m runeFloatMap) get(key rune) float64 { FILE: posseg/prob_trans.go type probTransMap (line 9) | type probTransMap method Get (line 11) | func (m probTransMap) Get(key uint16) float64 { function init (line 280) | func init() { FILE: posseg/viterbi.go type probState (line 8) | type probState struct method String (line 13) | func (ps probState) String() string { type probStates (line 17) | type probStates method Len (line 19) | func (pss probStates) Len() int { method Less (line 23) | func (pss probStates) Less(i, j int) bool { method Swap (line 30) | func (pss probStates) Swap(i, j int) { function viterbi (line 34) | func viterbi(obs []rune) []tag { FILE: posseg/viterbi_test.go function init (line 9) | func init() { function TestViterbi (line 53) | func TestViterbi(t *testing.T) { function BenchmarkViterbi (line 66) | func BenchmarkViterbi(b *testing.B) { FILE: tokenizers/example_bleve_test.go function Example_beleveSearch (line 12) | func Example_beleveSearch() { FILE: tokenizers/example_test.go function Example (line 9) | func Example() { FILE: tokenizers/tokenizer.go constant Name (line 14) | Name = "jieba" type JiebaTokenizer (line 19) | type JiebaTokenizer struct method Tokenize (line 55) | func (jt *JiebaTokenizer) Tokenize(input []byte) analysis.TokenStream { function NewJiebaTokenizer (line 44) | func NewJiebaTokenizer(dictFilePath string, hmm, searchMode bool) (analy... function JiebaTokenizerConstructor (line 116) | func JiebaTokenizerConstructor(config map[string]interface{}, cache *reg... function detectTokenType (line 134) | func detectTokenType(term string) analysis.TokenType { function init (line 145) | func init() { FILE: tokenizers/tokenizer_test.go function TestJiebaTokenizerDefaultModeWithHMM (line 10) | func TestJiebaTokenizerDefaultModeWithHMM(t *testing.T) { function TestJiebaTokenizerSearchModeWithHMM (line 5232) | func TestJiebaTokenizerSearchModeWithHMM(t *testing.T) { function TestJiebaTokenizerDefaultModeWithoutHMM (line 11069) | func TestJiebaTokenizerDefaultModeWithoutHMM(t *testing.T) { function TestJiebaTokenizerSearchModeWithoutHMM (line 16486) | func TestJiebaTokenizerSearchModeWithoutHMM(t *testing.T) { FILE: util/util.go function RegexpSplit (line 14) | func RegexpSplit(re *regexp.Regexp, s string, n int) []string { FILE: util/util_test.go function TestRegexpSplit (line 8) | func TestRegexpSplit(t *testing.T) {