17 using TraceLab.Components.DevelopmentKit.Preprocessors;
19 using TraceLabSDK.Types;
21 namespace TraceLab.Components.Library.Preprocessors
23 [Component(Name =
"Stopwords Remover",
24 Description =
"Removes common stop words, such as 'a', 'the', 'will', etc. It uses a list of stopwords previously imported to the Workspace.",
27 ConfigurationType = typeof(StopwordsComponentConfig))]
28 [IOSpec(IOSpecType.Input,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
29 [IOSpec(IOSpecType.Input,
"Stopwords", typeof(TraceLabSDK.Types.TLStopwords))]
30 [IOSpec(IOSpecType.Output,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
31 [Tag(
"Preprocessors")]
40 Configuration = _config;
45 TLArtifactsCollection listOfArtifacts = (TLArtifactsCollection)Workspace.Load(
"listOfArtifacts");
46 TLStopwords stopwords = (TLStopwords)Workspace.Load(
"Stopwords");
48 Workspace.Store(
"listOfArtifacts", removed);
54 public int MinWordLength {
get; set; }
55 public bool RemoveNumbers {
get; set; }