All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.houbb.keyword.util.KeywordHelper Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version
package com.github.houbb.keyword.util;

import com.github.houbb.keyword.bs.KeywordBs;
import com.github.houbb.keyword.constant.KeywordConst;
import com.github.houbb.keyword.support.result.impl.KeywordResultHandlers;

import java.util.List;

/**
 * @author binbin.hou
 * @since 0.0.1
 */
public final class KeywordHelper {

    private KeywordHelper(){}

    /**
     * 关键词
     * @param text 文本
     * @param limit 限制
     * @return 结果
     * @since 0.0.1
     */
    public static List keyword(final String text,
                                       final int limit) {
        return KeywordBs.newInstance().keyword(text, limit, KeywordResultHandlers.word());
    }

    /**
     * 关键词
     * @param text 文本
     * @return 结果
     * @since 0.0.1
     */
    public static List keyword(final String text) {
        return keyword(text, KeywordConst.DEFAULT_LIMIT_NUM);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy