Merge "Fix a bug in sentence detection when input is too long." into sc-dev