cld3 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cld3.gemspec +1 -1
- data/ext/cld3/base.cc +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 628760134e7e969a546b80c31ac97fd1d3417171
|
4
|
+
data.tar.gz: 04a7d9c49a6752625075a5c863fc1c624021655e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8e553de162e7c8802989dd25bedf999888fad4127ae090afc505231f0033d14c89a2ea0fc670c1e6ba8081a1fbe5973bb78704e3e44383706a89ac2adaa28c
|
7
|
+
data.tar.gz: 84308a74f754ade6a012e329ab86030b96990cde0329fc9f712d538e3d0967d03643fd75f40e90f8915feddda082b7f1c74be0909f8e69b9de0f4f055d680235
|
data/cld3.gemspec
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
Gem::Specification.new do |gem|
|
18
18
|
gem.name = "cld3"
|
19
|
-
gem.version = "3.1.
|
19
|
+
gem.version = "3.1.3"
|
20
20
|
gem.summary = "Compact Language Detector v3 (CLD3)"
|
21
21
|
gem.description = "Compact Language Detector v3 (CLD3) is a neural network model for language identification."
|
22
22
|
gem.license = "Apache-2.0"
|
data/ext/cld3/base.cc
CHANGED
@@ -16,14 +16,14 @@ limitations under the License.
|
|
16
16
|
#include "base.h"
|
17
17
|
|
18
18
|
#include <string>
|
19
|
-
#
|
19
|
+
#if defined(COMPILER_MSVC) || defined(_WIN32)
|
20
20
|
#include <sstream>
|
21
|
-
#endif // COMPILER_MSVC
|
21
|
+
#endif // defined(COMPILER_MSVC) || defined(_WIN32)
|
22
22
|
|
23
23
|
namespace chrome_lang_id {
|
24
24
|
|
25
25
|
// TODO(abakalov): Pick the most efficient approach.
|
26
|
-
#
|
26
|
+
#if defined(COMPILER_MSVC) || defined(_WIN32)
|
27
27
|
std::string Int64ToString(int64 input) {
|
28
28
|
std::stringstream stream;
|
29
29
|
stream << input;
|
@@ -31,6 +31,6 @@ std::string Int64ToString(int64 input) {
|
|
31
31
|
}
|
32
32
|
#else
|
33
33
|
std::string Int64ToString(int64 input) { return std::to_string(input); }
|
34
|
-
#endif // COMPILER_MSVC
|
34
|
+
#endif // defined(COMPILER_MSVC) || defined(_WIN32)
|
35
35
|
|
36
36
|
} // namespace chrome_lang_id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cld3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akihiko Odaki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|