17 using System.ComponentModel;
18 using TraceLab.Components.DevelopmentKit.Preprocessors;
20 using TraceLabSDK.Types;
22 namespace TraceLab.Components.Library.Preprocessors
24 [Component(Name =
"Cleanup Preprocessor",
25 Description =
"This Pre-Processor cleans up the text, eliminating all 'non characters' (punctuation marks, numbers, etc).",
28 ConfigurationType = typeof(CleanupComponentConfig))]
29 [IOSpec(IOSpecType.Input,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
30 [IOSpec(IOSpecType.Output,
"listOfArtifacts", typeof(TraceLabSDK.Types.TLArtifactsCollection))]
31 [Tag(
"Preprocessors")]
40 Configuration = _config;
45 TLArtifactsCollection listOfArtifacts = (TLArtifactsCollection)Workspace.Load(
"listOfArtifacts");
47 Workspace.Store(
"listOfArtifacts", cleanArtifacts);
53 [DisplayName(
"Convert to lowercase?")]
54 [Description(
"Option to convert terms to lowercase")]
55 public bool ConvertLowercase {
get; set; }