List<CoreLabel> words = new ArrayList<>();
for (int i = 0; i < origText.length(); i++) {
CoreLabel wi = new CoreLabel();
char[] ca = {origText.charAt(i)};
String wordString = new String(ca);
<BUG>if (origText.charAt(i) != '\n' && (Character.isSpaceChar(origText.charAt(i)) || Character.isISOControl(origText.charAt(i))

|| Character.isWhitespace(origText.charAt(i)))) {
seg = true;
} else {</BUG>
wi.set(CoreAnnotations.ChineseCharAnnotation.class, wordString);

List<CoreLabel> words = new ArrayList<>();
for (int i = 0; i < origText.length(); i++) {
CoreLabel wi = new CoreLabel();
char[] ca = {origText.charAt(i)};
String wordString = new String(ca);
if ((Character.isSpaceChar(origText.charAt(i)) || Character.isISOControl(origText.charAt(i))) &&
! (origText.charAt(i) == '\n' || origText.charAt(i) == '\r')) {
seg = true;
} else if (Character.isISOControl(origText.charAt(i))) {
seg = false;
} else {
wi.set(CoreAnnotations.ChineseCharAnnotation.class, wordString);
