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 83 4/30/2024
2.1.303 77 4/30/2024
2.1.302 81 4/30/2024
2.1.301 81 4/30/2024
2.1.300 70 4/29/2024
2.1.299 77 4/29/2024
2.1.298 73 4/29/2024
2.1.297 70 4/29/2024
2.1.296 76 4/28/2024
2.1.295 87 4/28/2024
2.1.294 80 4/28/2024
2.1.293 75 4/28/2024
2.1.292 74 4/28/2024
2.1.291 77 4/28/2024
2.1.290 73 4/28/2024
2.1.289 79 4/27/2024
2.1.288 91 4/27/2024
2.1.287 85 4/20/2024
2.1.286 78 4/20/2024
2.1.285 74 4/19/2024
2.1.284 73 4/19/2024
2.1.283 75 4/19/2024
2.1.282 78 4/19/2024
2.1.281 76 4/18/2024
2.1.280 83 4/13/2024
2.1.279 70 4/13/2024
2.1.278 77 4/13/2024
2.1.277 67 4/12/2024
2.1.276 64 4/12/2024
2.1.275 61 4/12/2024
2.1.274 62 4/12/2024
2.1.273 62 4/12/2024
2.1.272 62 4/12/2024
2.1.271 73 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 65 4/10/2024
2.1.265 70 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 222 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 70 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 75 3/13/2024
2.1.233 82 3/13/2024
2.1.232 86 3/13/2024
2.1.231 82 3/13/2024
2.1.230 81 3/13/2024
2.1.229 86 3/12/2024
2.1.228 84 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 88 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 88 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 91 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 83 3/3/2024
2.1.197 81 3/2/2024
2.1.196 81 3/2/2024
2.1.195 72 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 81 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 75 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 90 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 80 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 76 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 78 2/10/2024
2.1.117 80 2/10/2024
2.1.116 84 2/10/2024
2.1.115 79 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 82 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 82 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 76 2/4/2024
2.1.88 72 2/4/2024
2.1.87 73 2/3/2024
2.1.86 75 2/3/2024
2.1.85 76 1/31/2024
2.1.84 75 1/31/2024
2.1.83 66 1/31/2024
2.1.82 65 1/31/2024
2.1.81 82 1/30/2024
2.1.80 73 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 73 1/28/2024
2.1.69 77 1/28/2024
2.1.68 75 1/28/2024
2.1.67 73 1/28/2024
2.1.66 76 1/27/2024
2.1.65 74 1/27/2024
2.1.64 75 1/27/2024
2.1.63 73 1/27/2024
2.1.62 74 1/27/2024
2.1.61 74 1/27/2024
2.1.60 63 1/27/2024
2.1.59 75 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 70 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 84 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 87 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 77 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 87 1/12/2024
2.1.26 87 1/12/2024
2.1.25 83 1/11/2024
2.1.24 91 1/11/2024
2.1.23 92 1/11/2024
2.1.22 93 1/9/2024
2.1.21 104 1/8/2024
2.1.20 90 1/8/2024
2.1.19 93 1/8/2024
2.1.18 104 1/7/2024
2.1.17 94 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 104 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