This API is responsible for grouping the contents
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Toth.Core.Clustering;
using Toth.Core.Model;
namespace TestApp
{
class Program
{
static void Main(string[] args)
{
var lista = Toth.Extension.Encena.Artigo.SelectAll();
IList documents = new List();
//here you might fill your list
Toth.Core.Preparation.Process p = new Toth.Core.Preparation.Process(documents, false, false, true);
//At this point, your documents are ready to be clustered, with 10 clusters and 16 rounds
Cluster cl = new Cluster(p.GetDocuments(), 10, 16);
//After instantiate the cluster object, it's time to create the first group of documents
cl.Create();
//Now, run the cluster
cl.Run();
//Retrieve the documents of the first cluster
cl.GetDocumentsFromCluster(0);
}
}
}
.NET Framework 4.5