Make training file uploading processed by Text Segmenter.
Fix [ ] word matching bug.