porter.c

来自「使用具有增量学习的监控式学习方法。包括几个不同的分类算法。」· C语言 代码 · 共 45 行

C
45
字号
/** * @file * Interface to porter stemmer. * * @author  Mikael Ylikoski * @date    2002 */#include <stdio.h>#include "stemmer.h"#include "stemmers/stem_porter.h"/** * Stemming function. */static char *porter_stem_word (char *word) {    porter_stem (word);    return word;}/** * Keep cygwin happy. */intmain (void) {    return 0;}/** * Stemmer language. */const char *my_stemmer_language = "en";/** * Stemmer functions. */const stemmer_functions my_functions = {    .stem_word = porter_stem_word,};

⌨️ 快捷键说明

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