ffi-fasttext 0.1.0 → 0.1.1
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/lib/ffi/fasttext/version.rb +1 -1
- data/vendor/fasttext/ffi_fasttext.cc +1 -1
- 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: 2733c8705d35255f1f65e87fa0247da4d0f83a03
|
|
4
|
+
data.tar.gz: e7e1917a8b172641441b039d147e1a9d83f217cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc1eed1ab1a402a9b6541e1737626f01c630c08e6666a9f0d8505e02edc0e1178bda200eefc133fa0fb6201c88987ec6d860459cf51f979053ac28ef8a825c85
|
|
7
|
+
data.tar.gz: a5fcd1bd377d33c4de336299a83ca7d06c7e93b2fcd51afa08363257776ea366e886cd0ea8faaf4ebd2c9964316e18f2be0c96d083f437a75d5dfe337f1c2519
|
data/lib/ffi/fasttext/version.rb
CHANGED
|
@@ -39,10 +39,10 @@ void predict_string_free(const char* match) {
|
|
|
39
39
|
|
|
40
40
|
const char* predict(fasttext::FastText* fasttext_pointer, const char* key, int32_t number_of_predictions) {
|
|
41
41
|
std::string string_key(key);
|
|
42
|
+
string_key += '\n';
|
|
42
43
|
std::stringstream key_stream;
|
|
43
44
|
std::ostringstream output_stream;
|
|
44
45
|
key_stream.str(string_key);
|
|
45
|
-
key_stream << std::endl;
|
|
46
46
|
|
|
47
47
|
std::vector<std::pair<fasttext::real, std::string>> predictions;
|
|
48
48
|
fasttext_pointer->predict(key_stream, number_of_predictions, predictions);
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ffi-fasttext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandon Dewitt
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|