18 using System.Collections.Generic;
21 using TraceLab.Components.DevelopmentKit.Preprocessors;
23 using TraceLabSDK.Types;
25 namespace TraceLab.Components.Library.Preprocessors
27 [Component(Name =
"Simple Stopwords Remover",
28 Description =
"Option to remove numbers and words less than a certain length.",
31 ConfigurationType = typeof(SimpleStopwordsComponentConfig))]
32 [IOSpec(IOSpecType.Input,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
33 [IOSpec(IOSpecType.Output,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
34 [Tag(
"Preprocessors")]
43 Configuration = _config;
48 TLArtifactsCollection listOfArtifacts = (TLArtifactsCollection)Workspace.Load(
"listOfArtifacts");
50 Workspace.Store(
"listOfArtifacts", removed);
56 public int MinWordLength {
get; set; }
57 public bool RemoveNumbers {
get; set; }