Soenneker.Utils.String.CosineSimilarity 2.1.304

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

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

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.304 42 4/30/2024
2.1.303 43 4/30/2024
2.1.302 48 4/30/2024
2.1.301 43 4/30/2024
2.1.300 39 4/29/2024
2.1.299 43 4/29/2024
2.1.298 38 4/29/2024
2.1.297 34 4/29/2024
2.1.296 38 4/28/2024
2.1.295 53 4/28/2024
2.1.294 40 4/28/2024
2.1.293 39 4/28/2024
2.1.292 37 4/28/2024
2.1.291 41 4/28/2024
2.1.290 38 4/28/2024
2.1.289 40 4/27/2024
2.1.288 53 4/27/2024
2.1.287 83 4/20/2024
2.1.286 76 4/20/2024
2.1.285 72 4/19/2024
2.1.284 71 4/19/2024
2.1.283 72 4/19/2024
2.1.282 75 4/19/2024
2.1.281 73 4/18/2024
2.1.280 81 4/13/2024
2.1.279 68 4/13/2024
2.1.278 75 4/13/2024
2.1.277 65 4/12/2024
2.1.276 62 4/12/2024
2.1.275 59 4/12/2024
2.1.274 60 4/12/2024
2.1.273 60 4/12/2024
2.1.272 60 4/12/2024
2.1.271 71 4/12/2024
2.1.270 62 4/12/2024
2.1.269 69 4/11/2024
2.1.268 77 4/10/2024
2.1.267 67 4/10/2024
2.1.266 63 4/10/2024
2.1.265 68 4/10/2024
2.1.264 67 4/10/2024
2.1.263 89 4/3/2024
2.1.262 74 4/3/2024
2.1.261 220 3/30/2024
2.1.260 77 3/29/2024
2.1.259 80 3/29/2024
2.1.258 81 3/25/2024
2.1.257 81 3/25/2024
2.1.256 81 3/25/2024
2.1.255 68 3/25/2024
2.1.254 83 3/25/2024
2.1.253 77 3/21/2024
2.1.252 79 3/21/2024
2.1.251 88 3/21/2024
2.1.250 75 3/20/2024
2.1.249 82 3/20/2024
2.1.248 87 3/19/2024
2.1.247 62 3/19/2024
2.1.246 77 3/19/2024
2.1.245 68 3/19/2024
2.1.244 76 3/19/2024
2.1.243 89 3/19/2024
2.1.242 76 3/18/2024
2.1.241 80 3/16/2024
2.1.240 77 3/16/2024
2.1.239 85 3/16/2024
2.1.238 85 3/15/2024
2.1.237 79 3/13/2024
2.1.236 79 3/13/2024
2.1.235 79 3/13/2024
2.1.234 73 3/13/2024
2.1.233 80 3/13/2024
2.1.232 84 3/13/2024
2.1.231 80 3/13/2024
2.1.230 79 3/13/2024
2.1.229 84 3/12/2024
2.1.228 82 3/12/2024
2.1.227 76 3/12/2024
2.1.226 88 3/12/2024
2.1.225 74 3/11/2024
2.1.224 76 3/11/2024
2.1.223 86 3/11/2024
2.1.222 71 3/11/2024
2.1.221 64 3/11/2024
2.1.220 87 3/10/2024
2.1.219 83 3/10/2024
2.1.218 86 3/10/2024
2.1.217 77 3/10/2024
2.1.216 98 3/9/2024
2.1.215 88 3/8/2024
2.1.214 81 3/8/2024
2.1.213 86 3/8/2024
2.1.212 80 3/8/2024
2.1.211 79 3/8/2024
2.1.210 74 3/8/2024
2.1.209 89 3/6/2024
2.1.208 87 3/6/2024
2.1.207 78 3/6/2024
2.1.206 82 3/4/2024
2.1.205 72 3/4/2024
2.1.204 79 3/4/2024
2.1.203 77 3/4/2024
2.1.202 68 3/4/2024
2.1.201 76 3/3/2024
2.1.200 84 3/3/2024
2.1.199 80 3/3/2024
2.1.198 81 3/3/2024
2.1.197 79 3/2/2024
2.1.196 79 3/2/2024
2.1.195 70 2/29/2024
2.1.194 74 2/29/2024
2.1.193 72 2/29/2024
2.1.192 67 2/29/2024
2.1.191 75 2/29/2024
2.1.190 71 2/29/2024
2.1.189 65 2/29/2024
2.1.188 79 2/29/2024
2.1.187 70 2/27/2024
2.1.186 64 2/26/2024
2.1.185 49 2/26/2024
2.1.184 73 2/25/2024
2.1.183 67 2/25/2024
2.1.182 65 2/25/2024
2.1.181 79 2/25/2024
2.1.180 73 2/25/2024
2.1.179 72 2/24/2024
2.1.178 65 2/23/2024
2.1.177 69 2/23/2024
2.1.176 72 2/22/2024
2.1.175 67 2/22/2024
2.1.174 70 2/22/2024
2.1.173 56 2/22/2024
2.1.172 70 2/22/2024
2.1.171 70 2/22/2024
2.1.170 70 2/21/2024
2.1.169 69 2/21/2024
2.1.168 64 2/21/2024
2.1.167 81 2/21/2024
2.1.166 88 2/21/2024
2.1.165 78 2/21/2024
2.1.164 67 2/21/2024
2.1.163 87 2/20/2024
2.1.162 69 2/20/2024
2.1.161 77 2/20/2024
2.1.160 80 2/20/2024
2.1.159 82 2/20/2024
2.1.158 74 2/20/2024
2.1.157 77 2/20/2024
2.1.156 64 2/20/2024
2.1.155 69 2/19/2024
2.1.154 65 2/19/2024
2.1.153 71 2/19/2024
2.1.152 58 2/19/2024
2.1.151 82 2/17/2024
2.1.150 69 2/17/2024
2.1.149 73 2/17/2024
2.1.148 70 2/17/2024
2.1.147 83 2/17/2024
2.1.146 65 2/16/2024
2.1.145 79 2/16/2024
2.1.144 56 2/16/2024
2.1.143 82 2/16/2024
2.1.142 62 2/16/2024
2.1.141 77 2/16/2024
2.1.140 69 2/16/2024
2.1.139 76 2/14/2024
2.1.138 82 2/14/2024
2.1.137 78 2/14/2024
2.1.136 83 2/14/2024
2.1.135 70 2/13/2024
2.1.134 83 2/13/2024
2.1.133 67 2/13/2024
2.1.132 81 2/13/2024
2.1.131 66 2/13/2024
2.1.130 81 2/13/2024
2.1.129 76 2/12/2024
2.1.128 78 2/12/2024
2.1.127 78 2/12/2024
2.1.126 84 2/12/2024
2.1.125 74 2/11/2024
2.1.124 81 2/11/2024
2.1.123 78 2/11/2024
2.1.122 82 2/11/2024
2.1.121 76 2/11/2024
2.1.120 76 2/11/2024
2.1.119 84 2/10/2024
2.1.118 76 2/10/2024
2.1.117 78 2/10/2024
2.1.116 82 2/10/2024
2.1.115 77 2/10/2024
2.1.114 78 2/9/2024
2.1.113 78 2/9/2024
2.1.112 82 2/9/2024
2.1.111 82 2/9/2024
2.1.110 80 2/9/2024
2.1.109 79 2/9/2024
2.1.108 78 2/9/2024
2.1.107 88 2/8/2024
2.1.106 78 2/8/2024
2.1.105 74 2/8/2024
2.1.104 78 2/8/2024
2.1.103 79 2/8/2024
2.1.102 83 2/7/2024
2.1.101 80 2/7/2024
2.1.100 78 2/7/2024
2.1.99 74 2/7/2024
2.1.98 76 2/7/2024
2.1.97 78 2/7/2024
2.1.96 78 2/7/2024
2.1.95 81 2/7/2024
2.1.94 78 2/6/2024
2.1.93 68 2/6/2024
2.1.92 77 2/6/2024
2.1.91 75 2/5/2024
2.1.90 72 2/5/2024
2.1.89 74 2/4/2024
2.1.88 70 2/4/2024
2.1.87 71 2/3/2024
2.1.86 73 2/3/2024
2.1.85 74 1/31/2024
2.1.84 74 1/31/2024
2.1.83 64 1/31/2024
2.1.82 63 1/31/2024
2.1.81 80 1/30/2024
2.1.80 71 1/30/2024
2.1.79 73 1/30/2024
2.1.78 70 1/29/2024
2.1.77 75 1/29/2024
2.1.76 73 1/29/2024
2.1.75 70 1/29/2024
2.1.74 64 1/29/2024
2.1.73 77 1/29/2024
2.1.72 73 1/28/2024
2.1.71 76 1/28/2024
2.1.70 71 1/28/2024
2.1.69 75 1/28/2024
2.1.68 73 1/28/2024
2.1.67 71 1/28/2024
2.1.66 74 1/27/2024
2.1.65 72 1/27/2024
2.1.64 73 1/27/2024
2.1.63 71 1/27/2024
2.1.62 72 1/27/2024
2.1.61 72 1/27/2024
2.1.60 61 1/27/2024
2.1.59 73 1/27/2024
2.1.58 74 1/26/2024
2.1.57 71 1/26/2024
2.1.56 73 1/26/2024
2.1.55 72 1/26/2024
2.1.54 70 1/26/2024
2.1.53 78 1/26/2024
2.1.52 74 1/25/2024
2.1.51 69 1/25/2024
2.1.50 73 1/25/2024
2.1.49 76 1/25/2024
2.1.48 68 1/25/2024
2.1.47 73 1/25/2024
2.1.46 83 1/19/2024
2.1.45 78 1/19/2024
2.1.44 68 1/19/2024
2.1.43 95 1/16/2024
2.1.42 87 1/16/2024
2.1.41 67 1/15/2024
2.1.40 83 1/15/2024
2.1.39 82 1/15/2024
2.1.38 82 1/15/2024
2.1.37 82 1/15/2024
2.1.36 79 1/15/2024
2.1.35 85 1/15/2024
2.1.34 80 1/14/2024
2.1.33 79 1/14/2024
2.1.32 84 1/13/2024
2.1.31 75 1/13/2024
2.1.30 77 1/13/2024
2.1.29 85 1/13/2024
2.1.28 83 1/12/2024
2.1.27 85 1/12/2024
2.1.26 85 1/12/2024
2.1.25 81 1/11/2024
2.1.24 89 1/11/2024
2.1.23 90 1/11/2024
2.1.22 91 1/9/2024
2.1.21 102 1/8/2024
2.1.20 88 1/8/2024
2.1.19 91 1/8/2024
2.1.18 102 1/7/2024
2.1.17 92 1/6/2024
2.1.16 102 1/5/2024
2.1.15 98 1/5/2024
2.1.14 87 1/5/2024
2.1.13 93 1/5/2024
2.1.12 97 1/5/2024
2.1.11 73 1/1/2024
2.1.10 75 1/1/2024
2.1.9 78 1/1/2024
2.1.8 74 1/1/2024
2.1.7 80 1/1/2024
2.1.6 102 12/31/2023
2.1.5 90 12/31/2023
2.1.4 99 12/31/2023
2.1.3 78 12/31/2023
2.1.2 77 12/31/2023
2.1.1 84 12/31/2023