You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in this func:
func (seg *Segmenter) Reader(reader *bufio.Reader, files ...string) error
those code lines:
if fsErr != nil {
if fsErr == io.EOF {
...
}
must put after :
...
seg.Dict.AddToken(token)
Otherwise,last line of dictory file will be missed.exclude the last line is empty.
The text was updated successfully, but these errors were encountered:
in this func:
func (seg *Segmenter) Reader(reader *bufio.Reader, files ...string) error
those code lines:
if fsErr != nil {
if fsErr == io.EOF {
...
}
must put after :
...
seg.Dict.AddToken(token)
Otherwise,last line of dictory file will be missed.exclude the last line is empty.
The text was updated successfully, but these errors were encountered: