phraseextractor.java
来自「dragontoolkit用于机器学习」· Java 代码 · 共 63 行
JAVA
63 行
package dragon.nlp.extract;import dragon.nlp.ontology.*;import dragon.nlp.tool.*;/** * <p>Interface of Mutliword Phrase Extractor</p> * <p></p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: IST, Drexel University</p> * @author Davis Zhou * @version 1.0 */public interface PhraseExtractor extends ConceptExtractor { /** * Gets the part of speech tagger used for the phrase extractor * @return the part of speech tagger */ public Tagger getPOSTagger(); /** * Gets the phrase dictionary * @return the phrase dictionary */ public Vocabulary getVocabulary(); /** * Sets the option of extracting single-word nouns. * @param option the option of extracting single-word nouns */ public void setSingleNounOption(boolean option); /** * Tests if the single-word nouns will be extracted. * @return true if the single-word nouns will be extracted. */ public boolean getSingleNounOption(); /** * Sets the option of extracting single-word verbs. * @param option the option of extracting single-word verbs */ public void setSingleVerbOption(boolean option); /** * Tests if the single-word verbs will be extracted. * @return true if the single-word verbs will be extracted. */ public boolean getSingleVerbOption(); /** * Sets the option of extracting single-word adjectives. * @param option the option of extracting single-word adjectives */ public void setSingleAdjectiveOption(boolean option); /** * Tests if the single-word adjectives will be extracted. * @return true if the single-word adjectives will be extracted. */ public boolean getSingleAdjectiveOption();}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?