/// <summary> /// Constructor /// </summary> /// <param name="name">Corpus name</param> /// <param name="source">Source matrix</param> /// <param name="target">Target matrix</param> public LDACorpus(string name, TermDocumentMatrix source, TermDocumentMatrix target) { Name = name; _sourceDocs = source.DocMap; _targetDocs = target.DocMap; _matrix = TermDocumentMatrix.Combine(source, target); }
/// <summary> /// Constructor /// </summary> /// <param name="name">Corpus name</param> /// <param name="source">Source artifacts</param> /// <param name="target">Target artifacts</param> public LDACorpus(string name, TLArtifactsCollection source, TLArtifactsCollection target) { Name = name; TermDocumentMatrix sMatrix = new TermDocumentMatrix(source); TermDocumentMatrix tMatrix = new TermDocumentMatrix(target); _sourceDocs = sMatrix.DocMap; _targetDocs = tMatrix.DocMap; _matrix = TermDocumentMatrix.Combine(sMatrix, tMatrix); }