Sha256: a1a4f5a7e43845414b3c549a546fb72eea032c5286ec620484dcafaeda0eada4
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
# frozen_string_literal: true require_relative "lib/jp_translator_from_gpt" if ARGV.empty? puts "引数が必要です: ruby example.rb \"text\"" exit end text = ARGV.join(" ") translator = JpTranslatorFromGpt::Translator.new( output_logs: false, except_words: %w[hoge fuga], exchange_language: "en" ) translated_text = translator.translate(text) p translated_text
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jp_translator_from_gpt-1.1.0 | example.rb |