fasttext 0.2.2 → 0.2.3
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/README.md +7 -7
- data/ext/fasttext/extconf.rb +3 -1
- data/lib/fasttext/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c75eccaf6de25741a61c5dc5e5647f6387f14fe3589403930a3a1775b7842b'
|
4
|
+
data.tar.gz: 91ea1d96d29539e66857749c15858d3cd1e317ecc9b2988dc07136ecaceee4b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae540aef9c79ad8999ce715d19493467dacd71edca501eefcf97f4d5d3200f8c118437a5865b12b04447cf62cf352d04da17cbccbfc41ab2ab0cdc0e27a9b765
|
7
|
+
data.tar.gz: 0e75583df1ae15cebc9b71b362834634194cca865610524dca9332e5e2cc86ca3977cfdc2e635ac2340e08abaf37a5bc4d1a8b18da2e10a2bad09cd03f19626d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# fastText
|
1
|
+
# fastText Ruby
|
2
2
|
|
3
3
|
[fastText](https://fasttext.cc) - efficient text classification and representation learning - for Ruby
|
4
4
|
|
5
|
-
[![Build Status](https://github.com/ankane/fastText/workflows/build/badge.svg?branch=master)](https://github.com/ankane/fastText/actions)
|
5
|
+
[![Build Status](https://github.com/ankane/fastText-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/fastText-ruby/actions)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -256,22 +256,22 @@ model.predict("bon appétit")
|
|
256
256
|
|
257
257
|
## History
|
258
258
|
|
259
|
-
View the [changelog](https://github.com/ankane/
|
259
|
+
View the [changelog](https://github.com/ankane/fastText-ruby/blob/master/CHANGELOG.md)
|
260
260
|
|
261
261
|
## Contributing
|
262
262
|
|
263
263
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
264
264
|
|
265
|
-
- [Report bugs](https://github.com/ankane/
|
266
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/
|
265
|
+
- [Report bugs](https://github.com/ankane/fastText-ruby/issues)
|
266
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/fastText-ruby/pulls)
|
267
267
|
- Write, clarify, or fix documentation
|
268
268
|
- Suggest or add new features
|
269
269
|
|
270
270
|
To get started with development:
|
271
271
|
|
272
272
|
```sh
|
273
|
-
git clone --recursive https://github.com/ankane/fastText.git
|
274
|
-
cd fastText
|
273
|
+
git clone --recursive https://github.com/ankane/fastText-ruby.git
|
274
|
+
cd fastText-ruby
|
275
275
|
bundle install
|
276
276
|
bundle exec rake compile
|
277
277
|
bundle exec rake test
|
data/ext/fasttext/extconf.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require "mkmf-rice"
|
2
2
|
|
3
|
+
# -march=native not supported with ARM Mac
|
4
|
+
default_optflags = RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm/i ? "" : "-march=native"
|
3
5
|
# -pthread and -O3 set by default
|
4
|
-
$CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags",
|
6
|
+
$CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", default_optflags)
|
5
7
|
|
6
8
|
ext = File.expand_path(".", __dir__)
|
7
9
|
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.3
|
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-
|
11
|
+
date: 2021-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -71,7 +71,7 @@ files:
|
|
71
71
|
- vendor/fastText/src/utils.h
|
72
72
|
- vendor/fastText/src/vector.cc
|
73
73
|
- vendor/fastText/src/vector.h
|
74
|
-
homepage: https://github.com/ankane/fastText
|
74
|
+
homepage: https://github.com/ankane/fastText-ruby
|
75
75
|
licenses:
|
76
76
|
- MIT
|
77
77
|
metadata: {}
|
@@ -93,6 +93,5 @@ requirements: []
|
|
93
93
|
rubygems_version: 3.2.22
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
|
-
summary:
|
97
|
-
Ruby
|
96
|
+
summary: Efficient text classification and representation learning for Ruby
|
98
97
|
test_files: []
|