Sha256: 0bcd80a9592c484972e64fd61e420e656ad0e27032aec009a8030beed8068374

Contents?: true

Size: 311 Bytes

Versions: 2

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

require_relative "./lib/jp_translator_from_gpt"

if ARGV.empty?
  puts "引数が必要です: ruby main.rb \"text\""
  exit
end

text = ARGV.join(" ")
translator =
  JpTranslatorFromGpt::Translator.new(output_logs: false, except_words: ["hoge"])
translator.translate_to_jp(text)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jp_translator_from_gpt-1.0.1 example.rb
jp_translator_from_gpt-1.0.0 example.rb