Showing 1 of 2 files from the diff.
Newly tracked file
trim.go changed.
Other files ignored by Codecov
gse_test.go has changed.

@@ -99,6 +99,18 @@
Loading
99 99
	return
100 100
}
101 101
102 +
// TrimSymbol trim []string exclude symbol, space and punct
103 +
func (seg *Segmenter) TrimSymbol(s []string) (r []string) {
104 +
	for i := 0; i < len(s); i++ {
105 +
		si := FilterSymbol(s[i])
106 +
		if si != "" {
107 +
			r = append(r, si)
108 +
		}
109 +
	}
110 +
111 +
	return
112 +
}
113 +
102 114
// TrimPos trim SegPos not symbol, space and punct
103 115
func (seg *Segmenter) TrimPos(s []SegPos) (r []SegPos) {
104 116
	for i := 0; i < len(s); i++ {
@@ -144,6 +156,19 @@
Loading
144 156
	return seg.CutStr(pa)
145 157
}
146 158
159 +
// CutTrimHtml cut string trim html and symbol return []string
160 +
func (seg *Segmenter) CutTrimHtml(str string, hmm ...bool) []string {
161 +
	str = FilterHtml(str)
162 +
	s := seg.Cut(str, hmm...)
163 +
	return seg.TrimSymbol(s)
164 +
}
165 +
166 +
// CutTrimHtmls cut string trim html and symbol return string
167 +
func (seg *Segmenter) CutTrimHtmls(str string, hmm ...bool) string {
168 +
	s := seg.CutTrimHtml(str, hmm...)
169 +
	return seg.CutStr(s, " ")
170 +
}
171 +
147 172
// FilterEmoji filter the emoji
148 173
func FilterEmoji(text string) (new string) {
149 174
	for _, value := range text {
Files Coverage
dag.go 91.72%
dict_util.go 92.21%
dictionary.go 91.67%
gse.go 93.33%
seg.go 100.00%
seg_utils.go 92.41%
segmenter.go 91.57%
stop.go 87.50%
test_utils.go 81.82%
token.go 86.67%
trim.go 91.30%
Project Totals (11 files) 91.57%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading