Class: Juman
- Inherits:
-
Object
- Object
- Juman
- Defined in:
- lib/juman.rb,
lib/juman/result.rb,
lib/juman/process.rb,
lib/juman/version.rb,
lib/juman/morpheme.rb
Defined Under Namespace
Classes: Morpheme, Process, Result
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Method Summary collapse
- #analyze(text) ⇒ Object
-
#initialize ⇒ Juman
constructor
A new instance of Juman.
Constructor Details
#initialize ⇒ Juman
Returns a new instance of Juman.
7 8 9 |
# File 'lib/juman.rb', line 7 def initialize @process = Process.new('juman -B -e2') end |
Instance Method Details
#analyze(text) ⇒ Object
11 12 13 |
# File 'lib/juman.rb', line 11 def analyze(text) Result.new(@process.parse_to_enum(text)) end |