TraceLab Component Library
Main Page
Packages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
CzechStemmer.cs
Go to the documentation of this file.
1
/*
2
* Port of Snowball stemmers on C#
3
* Original stemmers can be found on http://snowball.tartarus.org
4
* Licence still BSD: http://snowball.tartarus.org/license.php
5
*
6
* Most of stemmers are ported from Java by Iveonik Systems ltd. (www.iveonik.com)
7
*/
8
using
System;
9
using
System.Collections.Generic;
10
using
System.Text;
11
using
System.Globalization;
12
13
namespace
TraceLab.Components.DevelopmentKit.Preprocessors.Stemmers.Snowball.Languages
14
{
18
public
class
CzechStemmer
:
StemmerOperations
,
ISnowballStemmer
19
{
25
public
string
Stem
(
string
input)
26
{
27
setCurrent(input.ToLowerInvariant());
28
// stemming...
29
//removes case endings from nouns and adjectives
30
removeCase();
31
//removes possesive endings from names -ov- and -in-
32
removePossessives();
33
//removes comparative endings
34
removeComparative();
35
//removes diminutive endings
36
removeDiminutive();
37
//removes augmentatives endings
38
removeAugmentative();
39
//removes derivational sufixes from nouns
40
removeDerivational();
41
//result = sb.toString();
42
return
getCurrent();
//sb.ToString();
43
}
44
45
}
46
47
48
}
TraceLab.Components
TraceLab.Components.DevelopmentKit
Preprocessors
Stemmers
Snowball
Languages
CzechStemmer.cs
Generated on Mon May 20 2013 18:13:11 for TraceLab Component Library by
1.8.4