notAI-tech / deepsegment

A sentence segmenter that actually works!
http://bpraneeth.com/projects
GNU General Public License v3.0
303 stars 57 forks source link

fix segment_long issue with short windows #12

Closed nikosfl closed 4 years ago

nikosfl commented 4 years ago

it may be the case that len(prefix)>n_window if just one segment exists in the current window example fixed: segmenter.segment_long("so you were thinking about drinking six drinks on your birthday is that still an accurate number yeah about that i'd say", n_window=4)

bedapudi6788 commented 4 years ago

@nikosfl nice catch! thanks for the pull request.