~snowball-yiddish-dev/snowball-yiddish/trunk

« back to all changes in this revision

Viewing changes to snowball/examples/stemwords.c

  • Committer: richard
  • Date: 2004-02-25 11:41:49 UTC
  • Revision ID: svn-v4:633ccae0-01f4-0310-8c99-d3591da6f01f:trunk:244
Add german2 stemmer, and fixes for some of the compiler warnings reported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
    FILE * f_out;
97
97
    struct sb_stemmer * stemmer;
98
98
 
 
99
    char * language = "english";
 
100
 
99
101
    char * s;
100
102
    int i = 1;
101
103
    pretty = 0;
144
146
    }
145
147
 
146
148
    /* do the stemming process: */
147
 
    stemmer = sb_stemmer_new("english");
 
149
    stemmer = sb_stemmer_new(language);
148
150
    if (stemmer == 0) {
149
 
        fprintf(stderr, "language `%s' not available for stemming\n");
 
151
        fprintf(stderr, "language `%s' not available for stemming\n", language);
150
152
        exit(1);
151
153
    }
152
154
    stem_file(stemmer, f_in, f_out);