ffi-fasttext 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c217429c82622b92680b63e21f0c86f42cb920a5
4
- data.tar.gz: 6918bc5355f181f3755b0932696b4fd2e73949e4
3
+ metadata.gz: 2733c8705d35255f1f65e87fa0247da4d0f83a03
4
+ data.tar.gz: e7e1917a8b172641441b039d147e1a9d83f217cc
5
5
  SHA512:
6
- metadata.gz: 110c9c5767272ffaf845c8798e093f3d9e7693373aca44dfae50e9f8c4cca7a1537f50274ca4b869034f6b549c1d5abf12354e261141ade94b9a1d67b88c70b7
7
- data.tar.gz: 4e06ffaa51d37cab3f6b99381c5413d4f4876c04b45130bdada8bb08bd665064a28dac0b1ccdd6e48ffa953a203585822ecdc723f925b5c9b247a5a9fc9347f7
6
+ metadata.gz: bc1eed1ab1a402a9b6541e1737626f01c630c08e6666a9f0d8505e02edc0e1178bda200eefc133fa0fb6201c88987ec6d860459cf51f979053ac28ef8a825c85
7
+ data.tar.gz: a5fcd1bd377d33c4de336299a83ca7d06c7e93b2fcd51afa08363257776ea366e886cd0ea8faaf4ebd2c9964316e18f2be0c96d083f437a75d5dfe337f1c2519
@@ -1,5 +1,5 @@
1
1
  module FFI
2
2
  module Fasttext
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -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.0
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-05-27 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi