package com.mooctest.util;

import com.hankcs.hanlp.HanLP;
import com.hankcs.hanlp.seg.Segment;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public class NLPUtil {

    public static final Segment segment = HanLP.newSegment();
    public static final int SENTENCE_LENGTH_THRESH = 4;
    public static final double TXT_SIMILAR_THRESHOLD_LOW = 0.5;
    public static Segment getDefaultSegment() {
        return segment;
    }
}
