Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultFeatureExtractor"/> class.
 /// </summary>
 /// <param name="summarizers">The summarizers.</param>
 public DefaultFeatureExtractor(IEnumerable <IFeatureExtractorLanguage> summarizers)
 {
     Extractors = summarizers.Where(x => x.GetType().Assembly != typeof(DefaultFeatureExtractor).Assembly).ToDictionary(x => x.Name);
     foreach (var Extractor in summarizers.Where(x => x.GetType().Assembly == typeof(DefaultFeatureExtractor).Assembly &&
                                                 !Extractors.ContainsKey(x.Name)))
     {
         Extractors.Add(Extractor.Name, Extractor);
     }
 }
 public void AddExtractor(IMediaExtractor extractor)
 {
     Extractors.Add(extractor);
 }