[FYR] rewrite in scala: segment filters
[FYR] rewrite in scala; pinyin
[FYR] rewrite in scala: segment core