Exemple #1
0
 public MainIndexer(IEnumerable<string> stopWords, IEnumerable<char> charsToRemove, ConcurrentQueue<Tuple<PrettyURL, string, DateTime>> toIndex, System.Threading.CountdownEvent cte)
 {
     StopWords = stopWords ?? Enumerable.Empty<string>();
     CharsToRemove = charsToRemove ?? Enumerable.Empty<char>();
     ToBeIndexedQueue = toIndex;
     CTE = cte;
     Jaccard_IAm = new Jaccard(4, 0.9, CharsToRemove.ToArray());
 }
Exemple #2
0
 public tf_idf_searcher()
 {
     Database = new DB();
     Jaccard_IAm = new Jaccard(4, 0.9, null);
 }