lemmatiser.java

来自「dragontoolkit用于机器学习」· Java 代码 · 共 37 行

JAVA
37
字号
package dragon.nlp.tool;/** * <p>Interface of lemmtaiser which gets the base form of a word</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface Lemmatiser {    static final int FIRSTPOS=1;    static final int LASTPOS=4;    /**     * Gets the base form of the word.     * @param word the word for lemmatising     * @return the base form     */    String lemmatize(String word);    /**     * Gets the base form of the word     * @param word the word for lemmatising     * @param POS the part of speech of the word     * @return the base form     */    String lemmatize(String word, int POS);    /**     * Gets the stem of the word. The result of stemming may be different from that of lemmasting. It is up to the implementations.     * @param word the word for processing     * @return the stem of a word     */    String stem(String word);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?