Soenneker.Utils.String.CosineSimilarity 2.1.334

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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.334
NuGet\Install-Package Soenneker.Utils.String.CosineSimilarity -Version 2.1.334
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.334" />
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.334
#r "nuget: Soenneker.Utils.String.CosineSimilarity, 2.1.334"
#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.334

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

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.376 38 6/16/2024
2.1.375 39 6/15/2024
2.1.374 38 6/15/2024
2.1.373 37 6/15/2024
2.1.372 38 6/15/2024
2.1.371 37 6/15/2024
2.1.370 40 6/15/2024
2.1.369 35 6/15/2024
2.1.368 38 6/15/2024
2.1.367 32 6/14/2024
2.1.366 34 6/14/2024
2.1.365 73 6/4/2024
2.1.364 83 6/4/2024
2.1.363 83 6/2/2024
2.1.362 85 6/1/2024
2.1.361 75 6/1/2024
2.1.360 74 6/1/2024
2.1.359 75 6/1/2024
2.1.358 82 6/1/2024
2.1.357 80 6/1/2024
2.1.356 76 6/1/2024
2.1.355 83 5/31/2024
2.1.354 76 5/31/2024
2.1.353 64 5/31/2024
2.1.352 78 5/31/2024
2.1.351 79 5/29/2024
2.1.350 71 5/29/2024
2.1.349 72 5/28/2024
2.1.348 73 5/28/2024
2.1.347 72 5/28/2024
2.1.346 74 5/28/2024
2.1.345 75 5/28/2024
2.1.344 73 5/27/2024
2.1.343 77 5/27/2024
2.1.342 70 5/27/2024
2.1.341 78 5/26/2024
2.1.340 79 5/26/2024
2.1.339 71 5/26/2024
2.1.338 84 5/26/2024
2.1.337 83 5/26/2024
2.1.336 80 5/26/2024
2.1.335 85 5/25/2024
2.1.334 84 5/25/2024
2.1.333 78 5/25/2024
2.1.332 82 5/25/2024
2.1.331 76 5/25/2024
2.1.330 82 5/25/2024
2.1.329 82 5/23/2024
2.1.328 81 5/23/2024
2.1.327 64 5/23/2024
2.1.326 81 5/23/2024
2.1.325 78 5/23/2024
2.1.324 88 5/23/2024
2.1.323 78 5/22/2024
2.1.322 85 5/22/2024
2.1.321 79 5/22/2024
2.1.320 73 5/22/2024
2.1.319 81 5/18/2024
2.1.318 80 5/18/2024
2.1.317 73 5/18/2024
2.1.316 77 5/18/2024
2.1.315 83 5/17/2024
2.1.314 89 5/17/2024
2.1.313 81 5/17/2024
2.1.312 77 5/16/2024
2.1.311 84 5/16/2024
2.1.310 89 5/15/2024
2.1.309 76 5/15/2024
2.1.308 91 5/15/2024
2.1.307 83 5/13/2024
2.1.306 85 5/13/2024
2.1.305 64 5/13/2024
2.1.304 94 4/30/2024
2.1.303 81 4/30/2024
2.1.302 87 4/30/2024
2.1.301 89 4/30/2024
2.1.300 73 4/29/2024
2.1.299 80 4/29/2024
2.1.298 76 4/29/2024
2.1.297 73 4/29/2024
2.1.296 79 4/28/2024
2.1.295 90 4/28/2024
2.1.294 83 4/28/2024
2.1.293 83 4/28/2024
2.1.292 77 4/28/2024
2.1.291 80 4/28/2024
2.1.290 76 4/28/2024
2.1.289 82 4/27/2024
2.1.288 99 4/27/2024
2.1.287 86 4/20/2024
2.1.286 79 4/20/2024
2.1.285 75 4/19/2024
2.1.284 74 4/19/2024
2.1.283 76 4/19/2024
2.1.282 79 4/19/2024
2.1.281 77 4/18/2024
2.1.280 84 4/13/2024
2.1.279 71 4/13/2024
2.1.278 78 4/13/2024
2.1.277 68 4/12/2024
2.1.276 65 4/12/2024
2.1.275 62 4/12/2024
2.1.274 63 4/12/2024
2.1.273 63 4/12/2024
2.1.272 63 4/12/2024
2.1.271 74 4/12/2024
2.1.270 64 4/12/2024
2.1.269 71 4/11/2024
2.1.268 79 4/10/2024
2.1.267 69 4/10/2024
2.1.266 71 4/10/2024
2.1.265 76 4/10/2024
2.1.264 69 4/10/2024
2.1.263 91 4/3/2024
2.1.262 77 4/3/2024
2.1.261 298 3/30/2024
2.1.260 79 3/29/2024
2.1.259 82 3/29/2024
2.1.258 83 3/25/2024
2.1.257 83 3/25/2024
2.1.256 83 3/25/2024
2.1.255 75 3/25/2024
2.1.254 85 3/25/2024
2.1.253 79 3/21/2024
2.1.252 80 3/21/2024
2.1.251 89 3/21/2024
2.1.250 76 3/20/2024
2.1.249 84 3/20/2024
2.1.248 89 3/19/2024
2.1.247 64 3/19/2024
2.1.246 79 3/19/2024
2.1.245 70 3/19/2024
2.1.244 78 3/19/2024
2.1.243 91 3/19/2024
2.1.242 78 3/18/2024
2.1.241 82 3/16/2024
2.1.240 79 3/16/2024
2.1.239 87 3/16/2024
2.1.238 87 3/15/2024
2.1.237 80 3/13/2024
2.1.236 80 3/13/2024
2.1.235 79 3/13/2024
2.1.234 81 3/13/2024
2.1.233 82 3/13/2024
2.1.232 86 3/13/2024
2.1.231 88 3/13/2024
2.1.230 81 3/13/2024
2.1.229 86 3/12/2024
2.1.228 89 3/12/2024
2.1.227 78 3/12/2024
2.1.226 90 3/12/2024
2.1.225 76 3/11/2024
2.1.224 78 3/11/2024
2.1.223 94 3/11/2024
2.1.222 73 3/11/2024
2.1.221 66 3/11/2024
2.1.220 89 3/10/2024
2.1.219 85 3/10/2024
2.1.218 88 3/10/2024
2.1.217 79 3/10/2024
2.1.216 100 3/9/2024
2.1.215 90 3/8/2024
2.1.214 83 3/8/2024
2.1.213 94 3/8/2024
2.1.212 82 3/8/2024
2.1.211 81 3/8/2024
2.1.210 76 3/8/2024
2.1.209 96 3/6/2024
2.1.208 89 3/6/2024
2.1.207 80 3/6/2024
2.1.206 84 3/4/2024
2.1.205 74 3/4/2024
2.1.204 81 3/4/2024
2.1.203 79 3/4/2024
2.1.202 70 3/4/2024
2.1.201 79 3/3/2024
2.1.200 86 3/3/2024
2.1.199 83 3/3/2024
2.1.198 88 3/3/2024
2.1.197 81 3/2/2024
2.1.196 81 3/2/2024
2.1.195 73 2/29/2024
2.1.194 76 2/29/2024
2.1.193 74 2/29/2024
2.1.192 69 2/29/2024
2.1.191 77 2/29/2024
2.1.190 73 2/29/2024
2.1.189 67 2/29/2024
2.1.188 87 2/29/2024
2.1.187 72 2/27/2024
2.1.186 66 2/26/2024
2.1.185 51 2/26/2024
2.1.184 75 2/25/2024
2.1.183 69 2/25/2024
2.1.182 67 2/25/2024
2.1.181 81 2/25/2024
2.1.180 79 2/25/2024
2.1.179 74 2/24/2024
2.1.178 67 2/23/2024
2.1.177 71 2/23/2024
2.1.176 74 2/22/2024
2.1.175 69 2/22/2024
2.1.174 72 2/22/2024
2.1.173 58 2/22/2024
2.1.172 72 2/22/2024
2.1.171 72 2/22/2024
2.1.170 72 2/21/2024
2.1.169 71 2/21/2024
2.1.168 66 2/21/2024
2.1.167 83 2/21/2024
2.1.166 96 2/21/2024
2.1.165 80 2/21/2024
2.1.164 69 2/21/2024
2.1.163 89 2/20/2024
2.1.162 71 2/20/2024
2.1.161 79 2/20/2024
2.1.160 82 2/20/2024
2.1.159 84 2/20/2024
2.1.158 76 2/20/2024
2.1.157 79 2/20/2024
2.1.156 66 2/20/2024
2.1.155 71 2/19/2024
2.1.154 67 2/19/2024
2.1.153 73 2/19/2024
2.1.152 60 2/19/2024
2.1.151 84 2/17/2024
2.1.150 71 2/17/2024
2.1.149 75 2/17/2024
2.1.148 72 2/17/2024
2.1.147 85 2/17/2024
2.1.146 67 2/16/2024
2.1.145 81 2/16/2024
2.1.144 58 2/16/2024
2.1.143 84 2/16/2024
2.1.142 64 2/16/2024
2.1.141 79 2/16/2024
2.1.140 71 2/16/2024
2.1.139 78 2/14/2024
2.1.138 84 2/14/2024
2.1.137 86 2/14/2024
2.1.136 85 2/14/2024
2.1.135 72 2/13/2024
2.1.134 85 2/13/2024
2.1.133 69 2/13/2024
2.1.132 83 2/13/2024
2.1.131 68 2/13/2024
2.1.130 83 2/13/2024
2.1.129 77 2/12/2024
2.1.128 80 2/12/2024
2.1.127 80 2/12/2024
2.1.126 86 2/12/2024
2.1.125 82 2/11/2024
2.1.124 83 2/11/2024
2.1.123 80 2/11/2024
2.1.122 84 2/11/2024
2.1.121 78 2/11/2024
2.1.120 78 2/11/2024
2.1.119 86 2/10/2024
2.1.118 84 2/10/2024
2.1.117 80 2/10/2024
2.1.116 84 2/10/2024
2.1.115 85 2/10/2024
2.1.114 80 2/9/2024
2.1.113 80 2/9/2024
2.1.112 84 2/9/2024
2.1.111 84 2/9/2024
2.1.110 88 2/9/2024
2.1.109 81 2/9/2024
2.1.108 80 2/9/2024
2.1.107 90 2/8/2024
2.1.106 80 2/8/2024
2.1.105 76 2/8/2024
2.1.104 80 2/8/2024
2.1.103 81 2/8/2024
2.1.102 85 2/7/2024
2.1.101 88 2/7/2024
2.1.100 80 2/7/2024
2.1.99 76 2/7/2024
2.1.98 78 2/7/2024
2.1.97 80 2/7/2024
2.1.96 80 2/7/2024
2.1.95 83 2/7/2024
2.1.94 80 2/6/2024
2.1.93 70 2/6/2024
2.1.92 79 2/6/2024
2.1.91 77 2/5/2024
2.1.90 74 2/5/2024
2.1.89 82 2/4/2024
2.1.88 72 2/4/2024
2.1.87 73 2/3/2024
2.1.86 78 2/3/2024
2.1.85 77 1/31/2024
2.1.84 75 1/31/2024
2.1.83 72 1/31/2024
2.1.82 65 1/31/2024
2.1.81 82 1/30/2024
2.1.80 79 1/30/2024
2.1.79 75 1/30/2024
2.1.78 72 1/29/2024
2.1.77 77 1/29/2024
2.1.76 75 1/29/2024
2.1.75 72 1/29/2024
2.1.74 66 1/29/2024
2.1.73 79 1/29/2024
2.1.72 75 1/28/2024
2.1.71 78 1/28/2024
2.1.70 74 1/28/2024
2.1.69 78 1/28/2024
2.1.68 76 1/28/2024
2.1.67 74 1/28/2024
2.1.66 77 1/27/2024
2.1.65 75 1/27/2024
2.1.64 76 1/27/2024
2.1.63 74 1/27/2024
2.1.62 75 1/27/2024
2.1.61 75 1/27/2024
2.1.60 63 1/27/2024
2.1.59 76 1/27/2024
2.1.58 76 1/26/2024
2.1.57 73 1/26/2024
2.1.56 75 1/26/2024
2.1.55 74 1/26/2024
2.1.54 72 1/26/2024
2.1.53 80 1/26/2024
2.1.52 76 1/25/2024
2.1.51 71 1/25/2024
2.1.50 75 1/25/2024
2.1.49 78 1/25/2024
2.1.48 71 1/25/2024
2.1.47 75 1/25/2024
2.1.46 85 1/19/2024
2.1.45 80 1/19/2024
2.1.44 70 1/19/2024
2.1.43 97 1/16/2024
2.1.42 89 1/16/2024
2.1.41 69 1/15/2024
2.1.40 85 1/15/2024
2.1.39 90 1/15/2024
2.1.38 84 1/15/2024
2.1.37 84 1/15/2024
2.1.36 81 1/15/2024
2.1.35 92 1/15/2024
2.1.34 82 1/14/2024
2.1.33 81 1/14/2024
2.1.32 86 1/13/2024
2.1.31 83 1/13/2024
2.1.30 79 1/13/2024
2.1.29 87 1/13/2024
2.1.28 85 1/12/2024
2.1.27 88 1/12/2024
2.1.26 87 1/12/2024
2.1.25 84 1/11/2024
2.1.24 92 1/11/2024
2.1.23 100 1/11/2024
2.1.22 96 1/9/2024
2.1.21 104 1/8/2024
2.1.20 90 1/8/2024
2.1.19 96 1/8/2024
2.1.18 104 1/7/2024
2.1.17 100 1/6/2024
2.1.16 104 1/5/2024
2.1.15 100 1/5/2024
2.1.14 89 1/5/2024
2.1.13 95 1/5/2024
2.1.12 99 1/5/2024
2.1.11 75 1/1/2024
2.1.10 77 1/1/2024
2.1.9 80 1/1/2024
2.1.8 76 1/1/2024
2.1.7 82 1/1/2024
2.1.6 105 12/31/2023
2.1.5 92 12/31/2023
2.1.4 101 12/31/2023
2.1.3 80 12/31/2023
2.1.2 79 12/31/2023
2.1.1 86 12/31/2023