class SmartCNAnalyzer implements Analyzer {

    private static final SmartChineseAnalyzer ANALYZER =
            new SmartChineseAnalyzer();

    public SmartCNAnalyzer(String mode) {
        // pass
    }

    @Override
    public Set<String> segment(String text) {<FILL_FUNCTION_BODY>}
}

        Set<String> result = InsertionOrderUtil.newSet();
        Reader reader = new StringReader(text);
        try (TokenStream tokenStream = ANALYZER.tokenStream("text", reader)) {
            tokenStream.reset();
            CharTermAttribute term;
            while (tokenStream.incrementToken()) {
                term = tokenStream.getAttribute(CharTermAttribute.class);
                result.add(term.toString());
            }
        } catch (Exception e) {
            throw new HugeException("SmartCN segment text '%s' failed",
                                    e, text);
        }
        return result;
    
<no_super_class>