tomoto 0.3.0 → 0.3.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/CHANGELOG.md +4 -0
- data/README.md +2 -0
- data/ext/tomoto/extconf.rb +4 -1
- data/ext/tomoto/lda.cpp +2 -2
- data/lib/tomoto/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7ebf68dfdd1842174f9f8c3b8459de5cb9943f194c0df0e75bad6b2747d7546
|
|
4
|
+
data.tar.gz: 97ed983d26beb5e172dbb42316b67256930032f017e9efabc27d0dbcf419959b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5173e759d7091f2621f70b8e45906585a33bdaf3093b4ed9e6ce637e172773e1d0cc7d8233156ec3715707b33de221b42f643582a75aa2e2506bb7de49bb1e11
|
|
7
|
+
data.tar.gz: 0bd48bfe76e6ce72193c9b1b7e2f50967dd76c3125aeb0cbade7dc91979017e5a01d5879c205998ac8af87ef547b2604743d2571190b24730646d847910c1200
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/ext/tomoto/extconf.rb
CHANGED
|
@@ -3,7 +3,10 @@ require "mkmf-rice"
|
|
|
3
3
|
$CXXFLAGS += " -std=c++17 $(optflags) -DEIGEN_MPL2_ONLY"
|
|
4
4
|
|
|
5
5
|
unless ENV["RUBY_CC_VERSION"]
|
|
6
|
-
#
|
|
6
|
+
# ARM not supported yet
|
|
7
|
+
# https://github.com/bab2min/tomotopy/issues/170
|
|
8
|
+
|
|
9
|
+
# AVX-512F not supported yet
|
|
7
10
|
# https://github.com/bab2min/tomotopy/issues/188
|
|
8
11
|
$CXXFLAGS << " " << with_config("optflags", "-march=native -mno-avx512f")
|
|
9
12
|
end
|
data/ext/tomoto/lda.cpp
CHANGED
|
@@ -49,12 +49,12 @@ void init_lda(Rice::Module& m) {
|
|
|
49
49
|
})
|
|
50
50
|
.define_method(
|
|
51
51
|
"_make_doc",
|
|
52
|
-
|
|
52
|
+
[](tomoto::ILDAModel& self, std::vector<std::string> words) {
|
|
53
53
|
return DocumentObject(self.makeDoc(buildDoc(words)).release(), &self);
|
|
54
54
|
})
|
|
55
55
|
.define_method(
|
|
56
56
|
"_infer",
|
|
57
|
-
|
|
57
|
+
[](tomoto::ILDAModel& self, DocumentObject& doc_object, size_t iteration, float tolerance, size_t workers, size_t ps, size_t together) {
|
|
58
58
|
std::vector<tomoto::DocumentBase*> docs;
|
|
59
59
|
auto doc = doc_object.doc;
|
|
60
60
|
docs.emplace_back(const_cast<tomoto::DocumentBase*>(doc));
|
data/lib/tomoto/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tomoto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.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:
|
|
11
|
+
date: 2023-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rice
|
|
@@ -552,7 +552,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
552
552
|
- !ruby/object:Gem::Version
|
|
553
553
|
version: '0'
|
|
554
554
|
requirements: []
|
|
555
|
-
rubygems_version: 3.
|
|
555
|
+
rubygems_version: 3.4.1
|
|
556
556
|
signing_key:
|
|
557
557
|
specification_version: 4
|
|
558
558
|
summary: High performance topic modeling for Ruby
|