nlpcloud 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nlpcloud.rb +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ce2d6801c7755ddca5273e89a899ab4fc5980f59046b29e48f2b5fbcdd2c735
4
- data.tar.gz: c4f466132c5378e2009d3fe5f16abd4d5fb50b7d60ae3993f1bc8986417e88f0
3
+ metadata.gz: 80404a1148f86e8a328ec28580186d619a963ffe569ea03fc82c3d45fb330783
4
+ data.tar.gz: bc04ed304e7c7d12dae401a5d0a7f28e2af8c4abd1fb733b51e2334a6a07aac9
5
5
  SHA512:
6
- metadata.gz: e174bf062d7e069ae5a51dc264b7fff737e10ef49a25047221659e18baa75301fb60e8b28ca5fc63d4dcf6db9fd64368a2e7c8b20bee5e0e1912e2fbbd36ac9d
7
- data.tar.gz: 6d84bd69c13b9fa22a4f2f7fb5dbf0f76efb067a477f5546b126b5f825d655dae64b351ff8424b68bcd2f38c567335e15e4268b87b7ea2fbb95b37735d4d8070
6
+ metadata.gz: 783b517b09f33721cfaad7cb7fa368b79249a7298ad2bf6338b3e6460c4bf089230b7d7fd95ceba1f05d1a54c5e701f8e4893c0930cbcd121f595f0f9be45608
7
+ data.tar.gz: 064b44c006a680d81c777c3dd057757d56da7f6a2d709bddbf893f3430819ff3d1a10b21520c62c2fa759295636e96dee05dd1b4823cc0780a6ff57d237d39bd
data/lib/nlpcloud.rb CHANGED
@@ -27,9 +27,10 @@ module NLPCloud
27
27
  end
28
28
  end
29
29
 
30
- def entities(text)
30
+ def entities(text, searched_entity: nil)
31
31
  payload = {
32
- 'text' => text
32
+ 'text' => text,
33
+ 'searched_entity' => searched_entity
33
34
  }
34
35
  response = RestClient.post("#{@root_url}/entities", payload.to_json, @headers)
35
36
  JSON.parse(response.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nlpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.18
4
+ version: 1.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Salinas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-03 00:00:00.000000000 Z
11
+ date: 2022-03-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'NLP Cloud serves high performance pre-trained or custom models for NER,
14
14
  sentiment-analysis, classification, summarization, text generation, question answering,