rbbt-dm 1.1.52 → 1.1.53

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b24501336450d017789e30104fd8681c1fc6c20163c96e134fddfbbe84930da4
4
- data.tar.gz: b4b15f1b3f94d07c40b779be25919f6809d2750885be59dab0d0f67749329b30
3
+ metadata.gz: b00fd271a576dd8e92f3e24e863ce59128c39edba34c14c75b3f0414f45e2ccf
4
+ data.tar.gz: 19a2825592b122ab485abaffa432cf19a71afc6f9fc30d6e7a63793fc70de914
5
5
  SHA512:
6
- metadata.gz: 8f83514ee5511773598c04675ac03db34e9593cc65c67dfe84a933b107f3137355025de2c79f03c3afa1173f01128c4c7e36776fb549991032c546e7a72bab71
7
- data.tar.gz: e84f508a5ee4a68163e8d409c897cc8c3716d5da6ac20ea5aa9eb159c7baf9b8cc8cc8feec0fcd4c05f9ca43f1686a2e5b32f381c716c825198fbcbafa0d6055
6
+ metadata.gz: b7b327a6de2ea159266ae41f38a8139e84552ece97b94bdab809dd26474be59b4a62456628257e788384e2cd2d5ea3c6d4f915dfbca1fb24fcad283d75c539ad
7
+ data.tar.gz: 53581538c5d4ac0a9ff7acda9039565f608caa04e5bfa5721f1e9efc29fb69ff7e1ff88de0379c8ca9be217feb4c273d44fefc5d30f901dcd6c723e0db28abab
@@ -62,9 +62,12 @@ class SpaCyModel < VectorModel
62
62
  spacy do
63
63
  nlp = spacy.load("#{file}/model-best")
64
64
 
65
- texts.collect do |text|
66
- cats = nlp.(text).cats
67
- cats['positive'] > cats['negative'] ? 1 : 0
65
+ Log::ProgressBar.with_bar texts.length, :desc => "Evaluating documents" do |bar|
66
+ texts.collect do |text|
67
+ cats = nlp.(text).cats
68
+ bar.tick
69
+ cats['positive'] > cats['negative'] ? 1 : 0
70
+ end
68
71
  end
69
72
  end
70
73
  end
@@ -20,7 +20,7 @@ factory = "transformer"
20
20
 
21
21
  [components.transformer.model]
22
22
  @architectures = "spacy-transformers.TransformerModel.v1"
23
- name = "roberta-base"
23
+ name = "emilyalsentzer/Bio_ClinicalBERT"
24
24
  tokenizer_config = {"use_fast": true}
25
25
 
26
26
  [components.transformer.model.get_spans]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-dm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.52
4
+ version: 1.1.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-23 00:00:00.000000000 Z
11
+ date: 2021-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbbt-util