rblearn 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/lib/rblearn/CountVectorizer.rb +2 -1
- data/lib/rblearn/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce5feb2cda06b31f43963c18583ac7f0961a3e24
|
|
4
|
+
data.tar.gz: 2ace52ec992c7e071a4dc106fe26be327de941e1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c08a78444850930aa2a30cce737f5fb7b72ed32038441f9ca273718c5f96d69b45e17d4801b24d4c615e00777aeee62ac3f5e646d1c6e702fe467d47c4c36de3
|
|
7
|
+
data.tar.gz: b48c59c5b44e313f84aa9cdbcf696bee15a9bc362f0b5262845430196a9188aa2c339eb0e62a673872fd89463f2c30a5cda4fe72fb171376547ef9ba78a623b7
|
|
@@ -3,7 +3,7 @@ module Rblearn
|
|
|
3
3
|
|
|
4
4
|
class CountVectorizer
|
|
5
5
|
# TODO: consider the access controll about all variables
|
|
6
|
-
attr_accessor :token2index
|
|
6
|
+
attr_accessor :token2index, :doc_matrix
|
|
7
7
|
|
|
8
8
|
# tokenizer: lambda function :: string -> Array<string>
|
|
9
9
|
# lowcase: whether if words are lowercases :: bool
|
|
@@ -89,6 +89,7 @@ module Rblearn
|
|
|
89
89
|
|
|
90
90
|
@feature_names = feature_names
|
|
91
91
|
@token2index = token2index
|
|
92
|
+
@doc_matrix = doc_matrix
|
|
92
93
|
return doc_matrix
|
|
93
94
|
end
|
|
94
95
|
end
|
data/lib/rblearn/version.rb
CHANGED