Soenneker.Utils.String.CosineSimilarity 2.1.479

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.479                
NuGet\Install-Package Soenneker.Utils.String.CosineSimilarity -Version 2.1.479                
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.479" />                
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.479                
#r "nuget: Soenneker.Utils.String.CosineSimilarity, 2.1.479"                
#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.479

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

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