aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2019-01-20 20:45:06 -0500
committerGitHub <noreply@github.com>2019-01-20 20:45:06 -0500
commitc7f648f86a543c889a92a15f9d8d1f95d28987c8 (patch)
treecadac43ca42a70a126084e1508fba0b8c4f4fce3 /Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs
parent7e4cc9f513ff583e7a8ecf596e61d33dd9ce41d9 (diff)
parent803bf563d74754139ff92810364262e3181e399d (diff)
Merge branch 'dev' into imagesize
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs b/Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs
deleted file mode 100644
index d7afb4113..000000000
--- a/Emby.Server.Implementations/TextEncoding/NLangDetect/ProbVector.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using System;
-using System.Collections.Generic;
-
-namespace NLangDetect.Core
-{
- public class ProbVector
- {
- private readonly Dictionary<int, double> _dict = new Dictionary<int, double>();
-
- public double this[int key]
- {
- get
- {
- return _dict.TryGetValue(key, out var value) ? value : 0.0;
- }
-
- set
- {
- if (Math.Abs(value) < double.Epsilon)
- {
- if (_dict.ContainsKey(key))
- {
- _dict.Remove(key);
- }
-
- return;
- }
-
- _dict[key] = value;
- }
- }
- }
-}