Soenneker.Utils.String.CosineSimilarity 2.1.446

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Utils.String.CosineSimilarity --version 2.1.446                
NuGet\Install-Package Soenneker.Utils.String.CosineSimilarity -Version 2.1.446                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Utils.String.CosineSimilarity" Version="2.1.446" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Utils.String.CosineSimilarity --version 2.1.446                
#r "nuget: Soenneker.Utils.String.CosineSimilarity, 2.1.446"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Utils.String.CosineSimilarity as a Cake Addin
#addin nuget:?package=Soenneker.Utils.String.CosineSimilarity&version=2.1.446

// Install Soenneker.Utils.String.CosineSimilarity as a Cake Tool
#tool nuget:?package=Soenneker.Utils.String.CosineSimilarity&version=2.1.446                

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.String.CosineSimilarity

A utility library for comparing strings via Cosine Similarity

Installation

dotnet add package Soenneker.Utils.String.CosineSimularity

Why?

Imagine you have two sentences or documents. Cosine similarity helps you figure out how similar they are by looking at the -words- they share. Here's why it's handy:

Easy to Understand:

Cosine similarity is easy to understand. It's a number between 0 and 1 that represents how similar two documents are. The closer to 1, the more similar they are.

Not Bothered by Length:

Whether a text is long or short doesn't throw off cosine similarity. It cares more about the words and their relationships than the total number of words.

Meaning, Not Just Frequency:

It focuses on the meaning of words, not just how often they show up. So, even if one document has a lot more words than another, they might still be considered similar if they share important terms.

Efficient for Big Tasks:

When you're dealing with lots of documents or a ton of text, cosine similarity is efficient. It doesn't get bogged down by complicated calculations, making it a practical choice for large datasets.

Usage

var text1 = "This is a test";
var text2 = "This is another test";

double result = CosineSimilarityStringUtil.CalculateSimilarityPercentage(text1, text2); // 75
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.540 31 9/27/2024
2.1.539 33 9/27/2024
2.1.538 35 9/27/2024
2.1.537 35 9/27/2024
2.1.536 30 9/27/2024
2.1.535 34 9/27/2024
2.1.534 40 9/27/2024
2.1.533 34 9/26/2024
2.1.532 32 9/26/2024
2.1.531 29 9/26/2024
2.1.530 36 9/26/2024
2.1.529 30 9/26/2024
2.1.528 27 9/26/2024
2.1.527 31 9/26/2024
2.1.526 35 9/26/2024
2.1.525 65 9/23/2024
2.1.524 65 9/23/2024
2.1.523 67 9/23/2024
2.1.522 63 9/23/2024
2.1.521 65 9/23/2024
2.1.520 72 9/23/2024
2.1.519 68 9/23/2024
2.1.518 65 9/23/2024
2.1.517 69 9/18/2024
2.1.516 66 9/18/2024
2.1.515 72 9/18/2024
2.1.514 64 9/18/2024
2.1.513 67 9/18/2024
2.1.512 71 9/17/2024
2.1.511 80 9/17/2024
2.1.510 77 9/17/2024
2.1.509 67 9/17/2024
2.1.508 60 9/17/2024
2.1.507 66 9/17/2024
2.1.506 65 9/17/2024
2.1.505 73 9/17/2024
2.1.504 69 9/16/2024
2.1.503 64 9/16/2024
2.1.502 76 9/16/2024
2.1.501 72 9/12/2024
2.1.500 77 9/12/2024
2.1.499 95 9/11/2024
2.1.498 98 9/11/2024
2.1.497 95 9/11/2024
2.1.496 88 9/11/2024
2.1.495 87 9/11/2024
2.1.494 91 9/10/2024
2.1.493 99 9/10/2024
2.1.492 84 9/10/2024
2.1.491 80 9/10/2024
2.1.490 88 9/10/2024
2.1.489 82 9/9/2024
2.1.487 92 9/9/2024
2.1.485 91 9/9/2024
2.1.484 88 9/9/2024
2.1.483 90 9/7/2024
2.1.482 90 9/7/2024
2.1.481 89 9/6/2024
2.1.479 86 9/6/2024
2.1.478 92 9/6/2024
2.1.477 99 9/5/2024
2.1.476 79 9/5/2024
2.1.475 97 9/5/2024
2.1.474 91 9/5/2024
2.1.473 92 9/5/2024
2.1.472 89 9/5/2024
2.1.471 93 9/5/2024
2.1.470 79 9/4/2024
2.1.469 73 9/4/2024
2.1.468 80 9/3/2024
2.1.467 72 9/3/2024
2.1.466 77 9/3/2024
2.1.465 83 9/3/2024
2.1.464 78 9/3/2024
2.1.463 81 9/3/2024
2.1.462 84 8/29/2024
2.1.461 79 8/29/2024
2.1.460 78 8/29/2024
2.1.459 92 8/26/2024
2.1.458 86 8/26/2024
2.1.457 107 8/21/2024
2.1.456 102 8/21/2024
2.1.455 101 8/21/2024
2.1.454 107 8/21/2024
2.1.453 104 8/20/2024
2.1.452 98 8/20/2024
2.1.451 95 8/20/2024
2.1.450 98 8/20/2024
2.1.449 104 8/20/2024
2.1.448 98 8/20/2024
2.1.447 106 8/19/2024
2.1.446 95 8/15/2024
2.1.445 110 8/15/2024
2.1.444 100 8/15/2024
2.1.443 94 8/14/2024
2.1.442 104 8/14/2024
2.1.441 107 8/13/2024
2.1.440 107 8/13/2024
2.1.439 78 8/7/2024
2.1.438 78 8/7/2024
2.1.437 74 8/7/2024
2.1.436 69 8/6/2024
2.1.435 78 8/1/2024
2.1.434 76 8/1/2024
2.1.432 70 7/25/2024
2.1.431 65 7/25/2024
2.1.430 65 7/25/2024
2.1.429 61 7/25/2024
2.1.428 70 7/25/2024
2.1.427 69 7/25/2024
2.1.426 76 7/25/2024
2.1.425 71 7/24/2024
2.1.423 96 7/20/2024
2.1.422 97 7/20/2024
2.1.421 94 7/20/2024
2.1.420 78 7/14/2024
2.1.419 74 7/14/2024
2.1.418 78 7/14/2024
2.1.417 72 7/14/2024
2.1.416 80 7/10/2024
2.1.415 83 7/10/2024
2.1.414 71 7/10/2024
2.1.413 90 7/10/2024
2.1.411 87 7/10/2024
2.1.410 69 7/10/2024
2.1.409 89 7/10/2024
2.1.408 75 7/10/2024
2.1.407 100 7/10/2024
2.1.405 93 7/10/2024
2.1.404 93 7/9/2024
2.1.402 77 7/9/2024
2.1.401 88 7/9/2024
2.1.400 75 7/9/2024
2.1.399 96 7/9/2024
2.1.398 94 7/9/2024
2.1.397 88 7/9/2024
2.1.396 92 7/9/2024
2.1.395 100 7/9/2024
2.1.394 89 7/8/2024
2.1.393 93 7/8/2024
2.1.392 92 7/8/2024
2.1.391 104 7/8/2024
2.1.390 82 7/8/2024
2.1.389 99 7/8/2024
2.1.388 90 7/7/2024
2.1.387 76 7/7/2024
2.1.386 105 7/3/2024
2.1.385 95 7/3/2024
2.1.384 93 7/3/2024
2.1.383 90 7/3/2024
2.1.382 96 7/3/2024
2.1.381 96 6/27/2024
2.1.380 82 6/27/2024
2.1.379 93 6/22/2024
2.1.378 88 6/22/2024
2.1.377 93 6/22/2024
2.1.376 103 6/16/2024
2.1.375 96 6/15/2024
2.1.374 96 6/15/2024
2.1.373 102 6/15/2024
2.1.372 105 6/15/2024
2.1.371 96 6/15/2024
2.1.370 97 6/15/2024
2.1.369 95 6/15/2024
2.1.368 98 6/15/2024
2.1.367 89 6/14/2024
2.1.366 94 6/14/2024
2.1.365 103 6/4/2024
2.1.364 114 6/4/2024
2.1.363 107 6/2/2024
2.1.362 112 6/1/2024
2.1.361 99 6/1/2024
2.1.360 102 6/1/2024
2.1.359 97 6/1/2024
2.1.358 111 6/1/2024
2.1.357 106 6/1/2024
2.1.356 104 6/1/2024
2.1.355 116 5/31/2024
2.1.354 99 5/31/2024
2.1.353 87 5/31/2024
2.1.352 98 5/31/2024
2.1.351 104 5/29/2024
2.1.350 94 5/29/2024
2.1.349 93 5/28/2024
2.1.348 99 5/28/2024
2.1.347 99 5/28/2024
2.1.346 96 5/28/2024
2.1.345 96 5/28/2024
2.1.344 99 5/27/2024
2.1.343 101 5/27/2024
2.1.342 90 5/27/2024
2.1.341 99 5/26/2024
2.1.340 103 5/26/2024
2.1.339 96 5/26/2024
2.1.338 106 5/26/2024
2.1.337 107 5/26/2024
2.1.336 102 5/26/2024
2.1.335 105 5/25/2024
2.1.334 106 5/25/2024
2.1.333 100 5/25/2024
2.1.332 104 5/25/2024
2.1.331 97 5/25/2024
2.1.330 103 5/25/2024
2.1.329 103 5/23/2024
2.1.328 104 5/23/2024
2.1.327 84 5/23/2024
2.1.326 107 5/23/2024
2.1.325 101 5/23/2024
2.1.324 109 5/23/2024
2.1.323 99 5/22/2024
2.1.322 104 5/22/2024
2.1.321 102 5/22/2024
2.1.320 96 5/22/2024
2.1.319 103 5/18/2024
2.1.318 101 5/18/2024
2.1.317 93 5/18/2024
2.1.316 98 5/18/2024
2.1.315 103 5/17/2024
2.1.314 111 5/17/2024
2.1.313 106 5/17/2024
2.1.312 98 5/16/2024
2.1.311 107 5/16/2024
2.1.310 108 5/15/2024
2.1.309 99 5/15/2024
2.1.308 115 5/15/2024
2.1.307 101 5/13/2024
2.1.306 105 5/13/2024
2.1.305 85 5/13/2024
2.1.304 118 4/30/2024
2.1.303 109 4/30/2024
2.1.302 108 4/30/2024
2.1.301 115 4/30/2024
2.1.300 102 4/29/2024
2.1.299 105 4/29/2024
2.1.298 92 4/29/2024
2.1.297 94 4/29/2024
2.1.296 97 4/28/2024
2.1.295 107 4/28/2024
2.1.294 105 4/28/2024
2.1.293 99 4/28/2024
2.1.292 105 4/28/2024
2.1.291 99 4/28/2024
2.1.290 98 4/28/2024
2.1.289 100 4/27/2024
2.1.288 117 4/27/2024
2.1.287 113 4/20/2024
2.1.286 101 4/20/2024
2.1.285 103 4/19/2024
2.1.284 98 4/19/2024
2.1.283 101 4/19/2024
2.1.282 105 4/19/2024
2.1.281 99 4/18/2024
2.1.280 111 4/13/2024
2.1.279 90 4/13/2024
2.1.278 105 4/13/2024
2.1.277 90 4/12/2024
2.1.276 81 4/12/2024
2.1.275 93 4/12/2024
2.1.274 92 4/12/2024
2.1.273 91 4/12/2024
2.1.272 95 4/12/2024
2.1.271 93 4/12/2024
2.1.270 87 4/12/2024
2.1.269 91 4/11/2024
2.1.268 106 4/10/2024
2.1.267 90 4/10/2024
2.1.266 91 4/10/2024
2.1.265 97 4/10/2024
2.1.264 94 4/10/2024
2.1.263 118 4/3/2024
2.1.262 101 4/3/2024
2.1.261 365 3/30/2024
2.1.260 102 3/29/2024
2.1.259 108 3/29/2024
2.1.258 104 3/25/2024
2.1.257 116 3/25/2024
2.1.256 103 3/25/2024
2.1.255 96 3/25/2024
2.1.254 109 3/25/2024
2.1.253 105 3/21/2024
2.1.252 100 3/21/2024
2.1.251 109 3/21/2024
2.1.250 95 3/20/2024
2.1.249 104 3/20/2024
2.1.248 114 3/19/2024
2.1.247 86 3/19/2024
2.1.246 99 3/19/2024
2.1.245 95 3/19/2024
2.1.244 99 3/19/2024
2.1.243 109 3/19/2024
2.1.242 102 3/18/2024
2.1.241 102 3/16/2024
2.1.240 98 3/16/2024
2.1.239 110 3/16/2024
2.1.238 105 3/15/2024
2.1.237 110 3/13/2024
2.1.236 107 3/13/2024
2.1.235 109 3/13/2024
2.1.234 105 3/13/2024
2.1.233 109 3/13/2024
2.1.232 105 3/13/2024
2.1.231 114 3/13/2024
2.1.230 103 3/13/2024
2.1.229 117 3/12/2024
2.1.228 110 3/12/2024
2.1.227 109 3/12/2024
2.1.226 117 3/12/2024
2.1.225 100 3/11/2024
2.1.224 102 3/11/2024
2.1.223 115 3/11/2024
2.1.222 96 3/11/2024
2.1.221 94 3/11/2024
2.1.220 115 3/10/2024
2.1.219 113 3/10/2024
2.1.218 109 3/10/2024
2.1.217 104 3/10/2024
2.1.216 125 3/9/2024
2.1.215 114 3/8/2024
2.1.214 115 3/8/2024
2.1.213 119 3/8/2024
2.1.212 104 3/8/2024
2.1.211 107 3/8/2024
2.1.210 100 3/8/2024
2.1.209 114 3/6/2024
2.1.208 112 3/6/2024
2.1.207 104 3/6/2024
2.1.206 108 3/4/2024
2.1.205 95 3/4/2024
2.1.204 104 3/4/2024
2.1.203 117 3/4/2024
2.1.202 95 3/4/2024
2.1.201 105 3/3/2024
2.1.200 118 3/3/2024
2.1.199 108 3/3/2024
2.1.198 113 3/3/2024
2.1.197 106 3/2/2024
2.1.196 104 3/2/2024
2.1.195 103 2/29/2024
2.1.194 99 2/29/2024
2.1.193 96 2/29/2024
2.1.192 106 2/29/2024
2.1.191 104 2/29/2024
2.1.190 91 2/29/2024
2.1.189 102 2/29/2024
2.1.188 110 2/29/2024
2.1.187 96 2/27/2024
2.1.186 84 2/26/2024
2.1.185 81 2/26/2024
2.1.184 99 2/25/2024
2.1.183 91 2/25/2024
2.1.182 87 2/25/2024
2.1.181 109 2/25/2024
2.1.180 97 2/25/2024
2.1.179 96 2/24/2024
2.1.178 95 2/23/2024
2.1.177 94 2/23/2024
2.1.176 97 2/22/2024
2.1.175 96 2/22/2024
2.1.174 108 2/22/2024
2.1.173 87 2/22/2024
2.1.172 95 2/22/2024
2.1.171 102 2/22/2024
2.1.170 99 2/21/2024
2.1.169 101 2/21/2024
2.1.168 92 2/21/2024
2.1.167 105 2/21/2024
2.1.166 116 2/21/2024
2.1.165 107 2/21/2024
2.1.164 94 2/21/2024
2.1.163 120 2/20/2024
2.1.162 95 2/20/2024
2.1.161 105 2/20/2024
2.1.160 103 2/20/2024
2.1.159 110 2/20/2024
2.1.158 97 2/20/2024
2.1.157 101 2/20/2024
2.1.156 88 2/20/2024
2.1.155 108 2/19/2024
2.1.154 86 2/19/2024
2.1.153 109 2/19/2024
2.1.152 84 2/19/2024
2.1.151 101 2/17/2024
2.1.150 111 2/17/2024
2.1.149 97 2/17/2024
2.1.148 99 2/17/2024
2.1.147 116 2/17/2024
2.1.146 99 2/16/2024
2.1.145 110 2/16/2024
2.1.144 89 2/16/2024
2.1.143 106 2/16/2024
2.1.142 95 2/16/2024
2.1.141 105 2/16/2024
2.1.140 110 2/16/2024
2.1.139 103 2/14/2024
2.1.138 108 2/14/2024
2.1.137 107 2/14/2024
2.1.136 112 2/14/2024
2.1.135 93 2/13/2024
2.1.134 106 2/13/2024
2.1.133 91 2/13/2024
2.1.132 111 2/13/2024
2.1.131 99 2/13/2024
2.1.130 107 2/13/2024
2.1.129 102 2/12/2024
2.1.128 103 2/12/2024
2.1.127 102 2/12/2024
2.1.126 107 2/12/2024
2.1.125 103 2/11/2024
2.1.124 105 2/11/2024
2.1.123 110 2/11/2024
2.1.122 115 2/11/2024
2.1.121 104 2/11/2024
2.1.120 98 2/11/2024
2.1.119 109 2/10/2024
2.1.118 107 2/10/2024
2.1.117 102 2/10/2024
2.1.116 109 2/10/2024
2.1.115 104 2/10/2024
2.1.114 107 2/9/2024
2.1.113 103 2/9/2024
2.1.112 104 2/9/2024
2.1.111 108 2/9/2024
2.1.110 112 2/9/2024
2.1.109 108 2/9/2024
2.1.108 109 2/9/2024
2.1.107 110 2/8/2024
2.1.106 106 2/8/2024
2.1.105 108 2/8/2024
2.1.104 109 2/8/2024
2.1.103 102 2/8/2024
2.1.102 107 2/7/2024
2.1.101 113 2/7/2024
2.1.100 113 2/7/2024
2.1.99 98 2/7/2024
2.1.98 105 2/7/2024
2.1.97 103 2/7/2024
2.1.96 104 2/7/2024
2.1.95 113 2/7/2024
2.1.94 106 2/6/2024
2.1.93 97 2/6/2024
2.1.92 100 2/6/2024
2.1.91 104 2/5/2024
2.1.90 106 2/5/2024
2.1.89 112 2/4/2024
2.1.88 97 2/4/2024
2.1.87 109 2/3/2024
2.1.86 104 2/3/2024
2.1.85 106 1/31/2024
2.1.84 96 1/31/2024
2.1.83 96 1/31/2024
2.1.82 87 1/31/2024
2.1.81 111 1/30/2024
2.1.80 103 1/30/2024
2.1.79 98 1/30/2024
2.1.78 98 1/29/2024
2.1.77 105 1/29/2024
2.1.76 97 1/29/2024
2.1.75 91 1/29/2024
2.1.74 92 1/29/2024
2.1.73 100 1/29/2024
2.1.72 99 1/28/2024
2.1.71 103 1/28/2024
2.1.70 95 1/28/2024
2.1.69 102 1/28/2024
2.1.68 101 1/28/2024
2.1.67 95 1/28/2024
2.1.66 99 1/27/2024
2.1.65 100 1/27/2024
2.1.64 96 1/27/2024
2.1.63 99 1/27/2024
2.1.62 97 1/27/2024
2.1.61 97 1/27/2024
2.1.60 87 1/27/2024
2.1.59 104 1/27/2024
2.1.58 105 1/26/2024
2.1.57 94 1/26/2024
2.1.56 95 1/26/2024
2.1.55 96 1/26/2024
2.1.54 99 1/26/2024
2.1.53 102 1/26/2024
2.1.52 98 1/25/2024
2.1.51 91 1/25/2024
2.1.50 108 1/25/2024
2.1.49 107 1/25/2024
2.1.48 98 1/25/2024
2.1.47 94 1/25/2024
2.1.46 108 1/19/2024
2.1.45 107 1/19/2024
2.1.44 100 1/19/2024
2.1.43 124 1/16/2024
2.1.42 117 1/16/2024
2.1.41 94 1/15/2024
2.1.40 115 1/15/2024
2.1.39 110 1/15/2024
2.1.38 113 1/15/2024
2.1.37 106 1/15/2024
2.1.36 109 1/15/2024
2.1.35 114 1/15/2024
2.1.34 114 1/14/2024
2.1.33 106 1/14/2024
2.1.32 107 1/13/2024
2.1.31 105 1/13/2024
2.1.30 105 1/13/2024
2.1.29 108 1/13/2024
2.1.28 113 1/12/2024
2.1.27 111 1/12/2024
2.1.26 109 1/12/2024
2.1.25 107 1/11/2024
2.1.24 115 1/11/2024
2.1.23 122 1/11/2024
2.1.22 119 1/9/2024
2.1.21 128 1/8/2024
2.1.20 112 1/8/2024
2.1.19 121 1/8/2024
2.1.18 128 1/7/2024
2.1.17 123 1/6/2024
2.1.16 128 1/5/2024
2.1.15 134 1/5/2024
2.1.14 129 1/5/2024
2.1.13 138 1/5/2024
2.1.12 127 1/5/2024
2.1.11 102 1/1/2024
2.1.10 96 1/1/2024
2.1.9 108 1/1/2024
2.1.8 98 1/1/2024
2.1.7 101 1/1/2024
2.1.6 129 12/31/2023
2.1.5 112 12/31/2023
2.1.4 117 12/31/2023
2.1.3 117 12/31/2023
2.1.2 97 12/31/2023
2.1.1 105 12/31/2023