veer66 / thailang4r

Thai language utility for Ruby
Apache License 2.0
26 stars 8 forks source link

i still unknown how to use your tools #2

Closed luoying1105 closed 2 years ago

luoying1105 commented 6 years ago

i have install but how to use it

tchayintr commented 6 years ago

@luoying1105 Have you try the code below in ruby console?

# encoding: UTF-8`
require 'thailang4r/word_breaker'
word_breaker = ThaiLang::WordBreaker.new
puts word_breaker.break_into_words("ฉันกินข้าว")

This link will describes you about how to run a ruby code or file on your terminal https://stackoverflow.com/questions/12378818/how-to-run-ruby-code-from-terminal