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

org.wltea.analyzer.cfg.Configuration Maven / Gradle / Ivy

The newest version!
package org.wltea.analyzer.cfg;

import java.util.List;

/**
 * 配置管理类接口
 */
public interface Configuration {

	/**
	 * 返回useSmart标志位
	 * useSmart =true ,分词器使用智能切分策略, =false则使用细粒度切分
	 *
	 * @return useSmart
	 */
	boolean useSmart();

	/**
	 * 设置useSmart标志位
	 * useSmart =true ,分词器使用智能切分策略, =false则使用细粒度切分
	 *
	 * @param useSmart 标志位
	 */
	void setUseSmart(boolean useSmart);

	/**
	 * 获取主词典路径
	 *
	 * @return String 主词典路径
	 */
	String getMainDictionary();

	/**
	 * 获取量词词典路径
	 *
	 * @return String 量词词典路径
	 */
	String getQuantifierDicionary();

	/**
	 * 获取扩展字典配置路径
	 *
	 * @return 相对类加载器的路径
	 */
	List getExtDictionarys();

	/**
	 * 获取扩展停止词典配置路径
	 *
	 * @return 相对类加载器的路径
	 */
	List getExtStopWordDictionarys();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy