proposal-classifier 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proposal/classifier/version.rb +1 -1
- data/lib/proposal/classifier.rb +3 -2
- data/lib/proposal/exported_model.onnx +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fce528252ea99dde72b5a8560815d5c341d6c3a4b8f0ff760180e4c2d9e1a39b
|
4
|
+
data.tar.gz: 7ced3932cf6e9d17fe2624932d4c2bce3b051596d54b838dabf85ba9445095f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 195f035110148fe671feab18ad9ac9a11b5645c25cf17f8d5517bb1e0f0db2c201b8bceca313f7bda8ba5f2893a9dbdec4627f54ef2851d70f9f46355bca8822
|
7
|
+
data.tar.gz: 190b2547675a3b963c54f303c8dce40e285ac36b199b67f28e50898f0a526e55d66007df8e26c9a031a190ad545ea58ea0469e775e68974d0afd1739c70102d4
|
data/lib/proposal/classifier.rb
CHANGED
@@ -8,8 +8,8 @@ require_relative "classifier/version"
|
|
8
8
|
|
9
9
|
module Proposal
|
10
10
|
module Classifier
|
11
|
-
class
|
12
|
-
def predict_onx(input_text)
|
11
|
+
class Model
|
12
|
+
def self.predict_onx(input_text)
|
13
13
|
nlp = Spacy::Language.new("pt_core_news_lg")
|
14
14
|
doc = nlp.read(input_text)
|
15
15
|
vector = doc.vector
|
@@ -20,5 +20,6 @@ module Proposal
|
|
20
20
|
pred_onx = model.run([label_name], {X: vector_fim_reshaped})[0]
|
21
21
|
return pred_onx
|
22
22
|
end
|
23
|
+
end
|
23
24
|
end
|
24
25
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proposal-classifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chaydson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: onnxruntime
|