17 using TraceLab.Components.DevelopmentKit.Preprocessors.Stemmers.Snowball;
19 using TraceLabSDK.Types;
21 namespace TraceLab.Components.Library.Preprocessors.Stemmers
23 [Component(Name =
"Snowball Stemmer",
24 Description =
"Stems artifacts using the Snowball stemmer algorithm.",
25 Author =
"SEMERU; Evan Moritz",
27 ConfigurationType = typeof(SnowballStemmerComponentConfig))]
28 [IOSpec(IOSpecType.Input,
"ListOfArtifacts", typeof(TLArtifactsCollection))]
29 [IOSpec(IOSpecType.Output,
"ListOfArtifacts", typeof(TLArtifactsCollection))]
30 [Tag(
"Preprocessors.Stemmers")]
39 Configuration = _config;
44 TLArtifactsCollection artifacts = (TLArtifactsCollection)Workspace.Load(
"ListOfArtifacts");
45 Logger.Info(
"Using " + _config.Language +
" stemmer");
47 Workspace.Store(
"ListOfArtifacts", stemmedArtifacts);