Skip to content

Commit

Permalink
Merge d6346b5 into c90c58c
Browse files Browse the repository at this point in the history
  • Loading branch information
sgwanlee committed Feb 7, 2020
2 parents c90c58c + d6346b5 commit 62a11b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/naver/papago.rb
Expand Up @@ -9,7 +9,7 @@ class << self
# @return [ObjectifiedHash] 번역된 문장
def translate(source:, target:, text:)
params = method(__method__).parameters.map(&:last).map { |p| [p, eval(p.to_s)] }.to_h
parse(JSON.parse(connection.post("/v1/language/translate", params).body)["message"]["result"])
parse(JSON.parse(connection.post("/v1/papago/n2mt", params).body)["message"]["result"])
end

# 한글인명 - 로마자 변환
Expand Down

0 comments on commit 62a11b6

Please sign in to comment.