//searchQuery. This way i don't have to create a new class. also I can use the termVector creator from before. public Page(string _searchQuery) { List<string> x = new List<string>(); x = DivideWords(_searchQuery); parser = new HTMLParser(x); //Create vectorLength //Skal gøres i searchtable istedet. }
public Shingles(HTMLParser x, int shingleStep, int sketchSize ,int numberOfSuperShingles) { //HTMLParser x = new HTMLParser(url); if (x.WordsOnPage.Count > 0) { _shingles = CreateShingles(x.WordsOnPage, shingleStep); _sketch = CreateSketch(_shingles, sketchSize); _superShingles = CreateSuperShingles(_sketch, numberOfSuperShingles); } }
public Page(UrlStamp url, int ID) { _url = url; parser = new HTMLParser(_url); Console.WriteLine("\tparser finished!"); shingles = new Shingles(parser, 4, 84, 12); Console.WriteLine("\tshingles finished!"); _dateVisited = DateTime.Now; _depth = url.Depth; _ID=ID; }