Project

niku-yma4r

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
yma4r is Yahoo Morphological Analyzer wrapper For Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0.0.5
>= 1.1.11
 Project Readme
= yma4r


== Description

   Yahoo Morphological Analyzer wrapper For Ruby

== Installation

=== Archive Installation

    rake install

=== Gem Installation

    gem install niku-yma4r

== Features/Problems


== Synopsis

require 'yma4r'
yma4r = Yma4r.new(
                  :appid => 'Your Yahoo Japan Application ID',
                  :sentence => 'すもももももももものうち',
                  :results => :ma,
                  :response => [:surface, :reading, :pos, :baseform]
                  )

yma4r.parse.ma_result.word_list.each do |e|
  puts "surface:#{e.surface}, reading:#{e.reading}, pos:#{e.pos}, baseform:#{e.baseform}"
end

# >> surface:すもも, reading:すもも, pos:名詞, baseform:すもも
# >> surface:も, reading:も, pos:助詞, baseform:も
# >> surface:もも, reading:もも, pos:名詞, baseform:もも
# >> surface:も, reading:も, pos:助詞, baseform:も
# >> surface:もも, reading:もも, pos:名詞, baseform:もも
# >> surface:の, reading:の, pos:助詞, baseform:の
# >> surface:うち, reading:うち, pos:名詞, baseform:うち

== SEE ALSO

   日本語形態素解析Webサービス: http://developer.yahoo.co.jp/jlp/MAService/V1/parse.html
   
== Copyright

Author::    niku <niku at niku.name>
Copyright:: Copyright (c) 2008 niku
License:: you can redistribute it and/or modify it under the same terms as Ruby itself.