You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+26-4
Original file line number
Diff line number
Diff line change
@@ -60,12 +60,34 @@ The only runtime dependency of this gem is Roman Shterenzon's `fast-stemmer` gem
60
60
gem install fast-stemmer
61
61
```
62
62
63
-
To speed up `LSI` classification by at least 10x consider installing following libraries.
63
+
In addition, it is **recommended** to install either Numo or GSL to speed up LSI classification by at least 10x.
64
64
65
-
*[GSL - GNU Scientific Library](http://www.gnu.org/software/gsl)
66
-
*[Ruby/GSL Gem](https://rubygems.org/gems/gsl)
65
+
Note that LSI will work without these libraries, but as soon as they are installed, classifier will make use of them. No configuration changes are needed, we like to keep things ridiculously easy for you.
66
+
67
+
### Install Numo Gems
68
+
69
+
[Numo](https://ruby-numo.github.io/narray/) is a set of Numerical Module gems for Ruby that provide a Ruby interface to [LAPACK](http://www.netlib.org/lapack/). If classifier detects that the required Numo gems are installed, it will make use of them to perform LSI faster.
* macOS: (Help wanted to verify installation steps) https://stackoverflow.com/questions/38114201/installing-lapack-and-blas-libraries-for-c-on-mac-os
74
+
* Install [OpenBLAS](https://www.openblas.net/)
75
+
* Ubuntu: `apt-get install libopenblas-dev`
76
+
* macOS: (Help wanted to verify installation steps) https://stackoverflow.com/questions/38114201/installing-lapack-and-blas-libraries-for-c-on-mac-os
77
+
* Install the [Numo::NArray](https://ruby-numo.github.io/narray/) and [Numo::Linalg](https://ruby-numo.github.io/linalg/) gems
78
+
*`gem install numo-narray numo-linalg`
79
+
80
+
### Install GSL Gem
81
+
82
+
**Note:** The `gsl` gem is currently incompatible with Ruby 3. It is recommended to use Numo instead with Ruby 3.
83
+
84
+
The [GNU Scientific Library (GSL)](http://www.gnu.org/software/gsl) is an alternative to Numo/LAPACK that can be used to improve LSI performance. (You should install one or the other, but both are not required.)
85
+
86
+
* Install the [GNU Scientific Library](http://www.gnu.org/software/gsl)
87
+
* Ubuntu: `apt-get install libgsl-dev`
88
+
* Install the [Ruby/GSL Gem](https://rubygems.org/gems/gsl) (or add it to your Gemfile)
89
+
*`gem install gsl`
67
90
68
-
Note that `LSI` will work without these libraries, but as soon as they are installed, classifier will make use of them. No configuration changes are needed, we like to keep things ridiculously easy for you.
0 commit comments