-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
111 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node { | ||
node ("docker-light") { | ||
def SOURCEDIR = pwd() | ||
try { | ||
stage("Clean up") { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
require 'rosette_api' | ||
|
||
api_key, url = ARGV | ||
|
||
if !url | ||
rosette_api = RosetteAPI.new(api_key) | ||
else | ||
rosette_api = RosetteAPI.new(api_key, url) | ||
end | ||
|
||
similar_terms_data = "spy" | ||
begin | ||
params = DocumentParameters.new(content: similar_terms_data) | ||
params.rosette_options = { "resultLanguages" => ["spa", "deu", "jpn"] } | ||
response = rosette_api.get_similar_terms(params) | ||
puts JSON.pretty_generate(response) | ||
rescue RosetteAPIError => rosette_api_error | ||
printf('Rosette API Error (%s): %s', rosette_api_error.status_code, rosette_api_error.message) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |s| | |
s.required_ruby_version = '>= 2.0.0' | ||
|
||
s.name = 'rosette_api' | ||
s.version = '1.9.2' | ||
s.version = '1.12.1' | ||
s.license = 'MIT' | ||
|
||
s.summary = 'Rosette API gem that supports multilingual text-analytics.' | ||
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |s| | |
s.authors = ['Basis Technology Corp'] | ||
s.email = %q{[email protected]} | ||
s.homepage = %q{https://developer.rosette.com/} | ||
s.date = %q{2018-02-14} | ||
s.date = %q{2019-02-08} | ||
|
||
all_files = `git ls-files -z`.split("\x0") | ||
s.files = all_files.grep(%r{^(bin|lib)/|^.rubocop.yml$}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters