INNER CODE UNIT · Java

extractSummary

jsksxs360/AHANLP · src/me/xiaosheng/chnlp/AHANLP.java:319

    public static String extractSummary(String segType, String document, int maxLength, String splitReg) {
        return TextRankSentence.getSummary(segType, document, maxLength, splitReg);
    }
    
    /**
     * 词语相似度
     * @param word1 词语1
     * @param word2 词语2
     * @return 词语相似度
     */
    public static float wordSimilarity(String word1, String word2) {
        return Word2VecSimi.wordSimilarity(word1, word2);
    }
    
    /**
     * 获取相似词语
     * @param word 词语
     * @param maxReturnNum 最大返回词数

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…