Class: CSTM2::CareerEmbed
- Inherits:
-
Object
- Object
- CSTM2::CareerEmbed
- Defined in:
- lib/cstm2.rb
Overview
careerembed model family (cstm_em_* keys)
Instance Method Summary collapse
- #embed(input) ⇒ Object
-
#initialize(client) ⇒ CareerEmbed
constructor
A new instance of CareerEmbed.
- #match_jobs(cv_text, country_code: nil, limit: 10) ⇒ Object
- #similarity(text_a, text_b) ⇒ Object
Constructor Details
#initialize(client) ⇒ CareerEmbed
Returns a new instance of CareerEmbed.
153 |
# File 'lib/cstm2.rb', line 153 def initialize(client) = @c = client |
Instance Method Details
#embed(input) ⇒ Object
155 |
# File 'lib/cstm2.rb', line 155 def (input) = @c.post('/v1/careerembed/embed', { input: input }) |
#match_jobs(cv_text, country_code: nil, limit: 10) ⇒ Object
157 158 159 |
# File 'lib/cstm2.rb', line 157 def match_jobs(cv_text, country_code: nil, limit: 10) @c.post('/v1/careerembed/match-jobs', { cv_text: cv_text, country_code: country_code, limit: limit }) end |
#similarity(text_a, text_b) ⇒ Object
156 |
# File 'lib/cstm2.rb', line 156 def similarity(text_a, text_b) = @c.post('/v1/careerembed/similarity', { text_a: text_a, text_b: text_b }) |