|
|
|
@ -17,7 +17,7 @@ |
|
|
|
|
// Dictionary of vectors to array of words represented by this vector |
|
|
|
|
var vectorsToWords = words |
|
|
|
|
.Where(word => word != null && word.Length > 0) |
|
|
|
|
.Select(word => new { word, vector = this.VectorsConverter.GetVector(word) }) |
|
|
|
|
.Select(word => new { word = word.Concat(new byte[] { SPACE }).ToArray(), vector = this.VectorsConverter.GetVector(word) }) |
|
|
|
|
.Where(tuple => tuple.vector != null) |
|
|
|
|
.Select(tuple => new { tuple.word, vector = tuple.vector.Value }) |
|
|
|
|
.GroupBy(tuple => tuple.vector) |
|
|
|
|