Soenneker.Utils.String.CosineSimilarity 2.1.295

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This package has not been indexed yet. It will appear in search results and will be available for install/restore after indexing is complete.
The package icon will become available after this package is indexed.
dotnet add package Soenneker.Utils.String.CosineSimilarity --version 2.1.295
NuGet\Install-Package Soenneker.Utils.String.CosineSimilarity -Version 2.1.295
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.295" />
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.295
#r "nuget: Soenneker.Utils.String.CosineSimilarity, 2.1.295"
#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.295

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

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.295 0 4/28/2024
2.1.294 0 4/28/2024
2.1.293 5 4/28/2024
2.1.292 21 4/28/2024
2.1.291 25 4/28/2024
2.1.290 25 4/28/2024
2.1.289 33 4/27/2024
2.1.288 41 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 80 4/13/2024
2.1.279 67 4/13/2024
2.1.278 74 4/13/2024
2.1.277 64 4/12/2024
2.1.276 61 4/12/2024
2.1.275 58 4/12/2024
2.1.274 59 4/12/2024
2.1.273 59 4/12/2024
2.1.272 59 4/12/2024
2.1.271 70 4/12/2024
2.1.270 61 4/12/2024
2.1.269 68 4/11/2024
2.1.268 76 4/10/2024
2.1.267 66 4/10/2024
2.1.266 62 4/10/2024
2.1.265 67 4/10/2024
2.1.264 66 4/10/2024
2.1.263 88 4/3/2024
2.1.262 73 4/3/2024
2.1.261 188 3/30/2024
2.1.260 76 3/29/2024
2.1.259 79 3/29/2024
2.1.258 80 3/25/2024
2.1.257 80 3/25/2024
2.1.256 80 3/25/2024
2.1.255 67 3/25/2024
2.1.254 82 3/25/2024
2.1.253 76 3/21/2024
2.1.252 78 3/21/2024
2.1.251 87 3/21/2024
2.1.250 74 3/20/2024
2.1.249 81 3/20/2024
2.1.248 86 3/19/2024
2.1.247 61 3/19/2024
2.1.246 76 3/19/2024
2.1.245 67 3/19/2024
2.1.244 75 3/19/2024
2.1.243 88 3/19/2024
2.1.242 75 3/18/2024
2.1.241 79 3/16/2024
2.1.240 76 3/16/2024
2.1.239 84 3/16/2024
2.1.238 84 3/15/2024
2.1.237 78 3/13/2024
2.1.236 78 3/13/2024
2.1.235 78 3/13/2024
2.1.234 72 3/13/2024
2.1.233 79 3/13/2024
2.1.232 83 3/13/2024
2.1.231 79 3/13/2024
2.1.230 78 3/13/2024
2.1.229 83 3/12/2024
2.1.228 81 3/12/2024
2.1.227 75 3/12/2024
2.1.226 87 3/12/2024
2.1.225 73 3/11/2024
2.1.224 75 3/11/2024
2.1.223 85 3/11/2024
2.1.222 70 3/11/2024
2.1.221 63 3/11/2024
2.1.220 86 3/10/2024
2.1.219 82 3/10/2024
2.1.218 85 3/10/2024
2.1.217 76 3/10/2024
2.1.216 97 3/9/2024
2.1.215 87 3/8/2024
2.1.214 80 3/8/2024
2.1.213 85 3/8/2024
2.1.212 79 3/8/2024
2.1.211 78 3/8/2024
2.1.210 73 3/8/2024
2.1.209 88 3/6/2024
2.1.208 86 3/6/2024
2.1.207 77 3/6/2024
2.1.206 81 3/4/2024
2.1.205 71 3/4/2024
2.1.204 78 3/4/2024
2.1.203 76 3/4/2024
2.1.202 67 3/4/2024
2.1.201 75 3/3/2024
2.1.200 83 3/3/2024
2.1.199 79 3/3/2024
2.1.198 80 3/3/2024
2.1.197 78 3/2/2024
2.1.196 78 3/2/2024
2.1.195 69 2/29/2024
2.1.194 73 2/29/2024
2.1.193 71 2/29/2024
2.1.192 66 2/29/2024
2.1.191 74 2/29/2024
2.1.190 70 2/29/2024
2.1.189 64 2/29/2024
2.1.188 78 2/29/2024
2.1.187 69 2/27/2024
2.1.186 63 2/26/2024
2.1.185 48 2/26/2024
2.1.184 72 2/25/2024
2.1.183 66 2/25/2024
2.1.182 64 2/25/2024
2.1.181 78 2/25/2024
2.1.180 72 2/25/2024
2.1.179 71 2/24/2024
2.1.178 64 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 72 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 60 1/27/2024
2.1.59 72 1/27/2024
2.1.58 73 1/26/2024
2.1.57 70 1/26/2024
2.1.56 72 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