fasttext 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/ext/fasttext/ext.cpp +3 -7
- data/ext/fasttext/extconf.rb +1 -1
- data/lib/fasttext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 597a9c73a6720397b11fb9bd0492c33ed458783747d904deef74618a6f319133
|
4
|
+
data.tar.gz: b03ab1e051cda71fafc499dbf0847d3da1c27050646e949eac148a5548460054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 844ae824ad06aa270a5c58b6dc109701660b2bb0e5bfe63e285df57bc5db854028703c1c0476a845d5b0e8c32dd02ac42e1c8b1c5c0684713928c895c776b1da
|
7
|
+
data.tar.gz: 7f7a07f0041981eb046e84f6b44f4207192eb9e8a786edf41b53ae15b370eb875f5b4d578248c90a371805697ad3f0fa076532d1f6789c44d336d72402a54333
|
data/CHANGELOG.md
CHANGED
data/ext/fasttext/ext.cpp
CHANGED
@@ -50,14 +50,10 @@ namespace Rice::detail
|
|
50
50
|
fasttext::Args buildArgs(Hash h) {
|
51
51
|
fasttext::Args a;
|
52
52
|
|
53
|
-
|
54
|
-
Hash::iterator it = h.begin();
|
55
|
-
Hash::iterator end = h.end();
|
56
|
-
|
57
|
-
for(; it != end; ++it)
|
53
|
+
for (const auto& it : h)
|
58
54
|
{
|
59
|
-
|
60
|
-
|
55
|
+
auto name = it.key.to_s().str();
|
56
|
+
auto value = (it.value).value();
|
61
57
|
|
62
58
|
if (name == "input") {
|
63
59
|
a.input = Rice::detail::From_Ruby<std::string>().convert(value);
|
data/ext/fasttext/extconf.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "mkmf-rice"
|
2
2
|
|
3
3
|
# -pthread and -O3 set by default
|
4
|
-
$CXXFLAGS << " -std=c++17 -funroll-loops " << with_config("optflags", "-march=native")
|
4
|
+
$CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", "-march=native")
|
5
5
|
|
6
6
|
ext = File.expand_path(".", __dir__)
|
7
7
|
fasttext = File.expand_path("../../vendor/fastText/src", __dir__)
|
data/lib/fasttext/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fasttext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|