17 using System.ComponentModel;
19 using TraceLabSDK.Component.Config;
20 using TraceLabSDK.Types;
22 namespace TraceLab.Components.Library.Importers.Stopwords
24 [Component(Name =
"Stopwords Importer",
27 Description =
"Imports list of stopwords from text file. Each stopword should be in new line. \n" +
28 "Sample file can be found in Package 'Importers Sample Files', file 'Stopwords Importer Format.txt'",
30 [IOSpec(IOSpecType.Output,
"stopwords", typeof(TraceLabSDK.Types.TLStopwords))]
31 [Tag(
"Importers.TLStopwords.From TXT")]
40 Configuration = _config;
45 TLStopwords stopwords = DevelopmentKit.IO.Stopwords.Import(_config.Path.Absolute);
46 Workspace.Store(
"stopwords", stopwords);
48 Logger.Info(
"Stopwords has been imported from " + _config.Path);
54 [DisplayName(
"File to import")]
55 public FilePath Path {
get; set; }